I have implemented a notifee and passed it to the basic host by my connection manager.
All the interface methods except this one
Notifiee.ListenClose get callbacks. Upon investigation, I found that in the Go Libp2p source there are no callers for the ListenClose method. Will a call be added anytime soon?
I have several tests which start and stop several libp2p nodes and they fail intermittently. I suspect the ports are not closed fully before the next test start and that may cause a new libp2p node connecting to an old one which is being brought down. ListenClose would have helped me resolve that with a done() channel.
I have created this issue to track this - https://github.com/libp2p/go-libp2p-core/issues/119