Browse Source
Merge pull request #639 from libp2p/feat/connmgr-close
Close the connection manager
pull/641/head
vyzo
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
1 deletions
-
go.mod
-
go.sum
-
p2p/host/basic/basic_host.go
|
|
@ -16,7 +16,7 @@ require ( |
|
|
|
github.com/libp2p/go-libp2p-crypto v0.0.2 |
|
|
|
github.com/libp2p/go-libp2p-discovery v0.0.3 |
|
|
|
github.com/libp2p/go-libp2p-host v0.0.3 |
|
|
|
github.com/libp2p/go-libp2p-interface-connmgr v0.0.4 |
|
|
|
github.com/libp2p/go-libp2p-interface-connmgr v0.0.5 |
|
|
|
github.com/libp2p/go-libp2p-interface-pnet v0.0.1 |
|
|
|
github.com/libp2p/go-libp2p-loggables v0.0.1 |
|
|
|
github.com/libp2p/go-libp2p-metrics v0.0.1 |
|
|
|
|
|
@ -117,6 +117,8 @@ github.com/libp2p/go-libp2p-interface-connmgr v0.0.1 h1:Q9EkNSLAOF+u90L88qmE9z/f |
|
|
|
github.com/libp2p/go-libp2p-interface-connmgr v0.0.1/go.mod h1:GarlRLH0LdeWcLnYM/SaBykKFl9U5JFnbBGruAk/D5k= |
|
|
|
github.com/libp2p/go-libp2p-interface-connmgr v0.0.4 h1:/LngXETpII5qOD7YjAcQiIxhVtdAk/NQe5t9sC6BR0E= |
|
|
|
github.com/libp2p/go-libp2p-interface-connmgr v0.0.4/go.mod h1:GarlRLH0LdeWcLnYM/SaBykKFl9U5JFnbBGruAk/D5k= |
|
|
|
github.com/libp2p/go-libp2p-interface-connmgr v0.0.5 h1:KG/KNYL2tYzXAfMvQN5K1aAGTYSYUMJ1prgYa2/JI1E= |
|
|
|
github.com/libp2p/go-libp2p-interface-connmgr v0.0.5/go.mod h1:GarlRLH0LdeWcLnYM/SaBykKFl9U5JFnbBGruAk/D5k= |
|
|
|
github.com/libp2p/go-libp2p-interface-pnet v0.0.1 h1:7GnzRrBTJHEsofi1ahFdPN9Si6skwXQE9UqR2S+Pkh8= |
|
|
|
github.com/libp2p/go-libp2p-interface-pnet v0.0.1/go.mod h1:el9jHpQAXK5dnTpKA4yfCNBZXvrzdOU75zz+C6ryp3k= |
|
|
|
github.com/libp2p/go-libp2p-loggables v0.0.1 h1:HVww9oAnINIxbt69LJNkxD8lnbfgteXR97Xm4p3l9ps= |
|
|
|
|
|
@ -719,6 +719,7 @@ func (h *BasicHost) AllAddrs() []ma.Multiaddr { |
|
|
|
// Close shuts down the Host's services (network, etc).
|
|
|
|
func (h *BasicHost) Close() error { |
|
|
|
h.cancel() |
|
|
|
h.cmgr.Close() |
|
|
|
return h.proc.Close() |
|
|
|
} |
|
|
|
|
|
|
|