diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 666d918e0..87de42e01 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -141,7 +141,7 @@ }, { "ImportPath": "github.com/jbenet/go-peerstream", - "Rev": "1c71a3e04eeef9297a12ecdff75a0b28ffa8bf90" + "Rev": "fc6b2a964210945ae2325e6678898d2222526f00" }, { "ImportPath": "github.com/jbenet/go-random", diff --git a/Godeps/_workspace/src/github.com/jbenet/go-peerstream/conn.go b/Godeps/_workspace/src/github.com/jbenet/go-peerstream/conn.go index e5325e331..7481c8015 100644 --- a/Godeps/_workspace/src/github.com/jbenet/go-peerstream/conn.go +++ b/Godeps/_workspace/src/github.com/jbenet/go-peerstream/conn.go @@ -235,7 +235,12 @@ func (s *Swarm) removeStream(stream *Stream) error { s.streamLock.Unlock() stream.conn.streamLock.Unlock() - return stream.ssStream.Close() + // Reset is spdystream's full bidirectional close. + // We expose bidirectional close as our `Close`. + // To close only half of the connection, and use other + // spdystream options, just get the stream with: + // stream.SPDYStream() + return stream.ssStream.Reset() } func (s *Swarm) removeConn(conn *Conn) error {