-
Notifications
You must be signed in to change notification settings - Fork 12
Don't spawn and sleep a goroutine every time we receive a connection. #40
Comments
* incoming connections post a channel event - fix libp2p#40 * inbound connections reduce the frequency of probes - address libp2p#35 waiting on libp2p/go-libp2p#747 for detecting local address changes
* incoming connections post a channel event - fix libp2p#40 * inbound connections reduce the frequency of probes - address libp2p#35 waiting on libp2p/go-libp2p#747 for detecting local address changes
* incoming connections post a channel event - fix libp2p#40 * inbound connections reduce the frequency of probes - address libp2p#35 waiting on libp2p/go-libp2p#747 for detecting local address changes
Really, we shouldn't need to sleep for Identify to complete(we already have the
|
Can we change the title to "Refactor how we manage AutoNAT peers" as if done right, this will also help solve #9 AND #28 . @jacobheun If Sir Steb agrees, we should make this a feature & add it to Working Kademlia. |
After we note down ids's of peers supporting autonat, how do we choose which peer in that list to attempt dialing? |
We should use the identify event. We didn't before because it didn't exist.
Let's create a new issue with a specific proposal (we can create multiple issues with different proposals). This is issue is just a bug report about a specific issue. Note: IMO, in the best of all worlds, we wouldn't handle this in autonat at all. We'd just ask the peerstore "who have we seen recently that supports the autonat protocol". But that's further off. For now, just remembering a set of peers in this service (no need to block on "pins"). |
* Single goroutine managing autonat-relevent events. * Watching incoming connections and local interface changes as signals. * Emit a single 'rechabilitychanged' persistent event fix #40 fix #36 fix #35 fix #34 fix #11 obsolete #28 obsolete #9 Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com> Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
The way we're currently handling connect events (notify.go) is awful.
The text was updated successfully, but these errors were encountered: