mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 17:36:38 +08:00
updated go-peerstream (close fix)
This commit is contained in:
2
Godeps/Godeps.json
generated
2
Godeps/Godeps.json
generated
@ -141,7 +141,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/jbenet/go-peerstream",
|
"ImportPath": "github.com/jbenet/go-peerstream",
|
||||||
"Rev": "1c71a3e04eeef9297a12ecdff75a0b28ffa8bf90"
|
"Rev": "fc6b2a964210945ae2325e6678898d2222526f00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/jbenet/go-random",
|
"ImportPath": "github.com/jbenet/go-random",
|
||||||
|
7
Godeps/_workspace/src/github.com/jbenet/go-peerstream/conn.go
generated
vendored
7
Godeps/_workspace/src/github.com/jbenet/go-peerstream/conn.go
generated
vendored
@ -235,7 +235,12 @@ func (s *Swarm) removeStream(stream *Stream) error {
|
|||||||
s.streamLock.Unlock()
|
s.streamLock.Unlock()
|
||||||
stream.conn.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 {
|
func (s *Swarm) removeConn(conn *Conn) error {
|
||||||
|
Reference in New Issue
Block a user