updated go-peerstream (close fix)
Juan Batiz-Benet committed
Dec 28, 2014 at 03:59 UTC
5c2cc6089ffdf5024d9addab65ddda21755ac972
2 files changed
+7
-2
Godeps/Godeps.json
+1
-1
@@ -141,7 +141,7 @@
141
},
142
{
143
"ImportPath": "github.com/jbenet/go-peerstream",
144
- "Rev": "1c71a3e04eeef9297a12ecdff75a0b28ffa8bf90"
144
+ "Rev": "fc6b2a964210945ae2325e6678898d2222526f00"
145
},
146
{
147
"ImportPath": "github.com/jbenet/go-random",
Godeps/_workspace/src/github.com/jbenet/go-peerstream/conn.go
+6
-1
@@ -235,7 +235,12 @@ func (s *Swarm) removeStream(stream *Stream) error {
235
s.streamLock.Unlock()
236
stream.conn.streamLock.Unlock()
237
238
- return stream.ssStream.Close()
238
+ // Reset is spdystream's full bidirectional close.
239
+ // We expose bidirectional close as our `Close`.
240
+ // To close only half of the connection, and use other
241
+ // spdystream options, just get the stream with:
242
+ // stream.SPDYStream()
243
+ return stream.ssStream.Reset()
244
}
245
246
func (s *Swarm) removeConn(conn *Conn) error {