You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform: Linux 1c087b494e39 5.4.0-7642-generic Improve libp2p config #46159862870720.04~040157c-Ubuntu SMP Fri Aug 28 18:02:16 UTC x86_64 GNU/Linux
Subsystem:
Type: Bug
Severity: Medium
Description: My listener is receiving two peer:connect events when a dialer reconnects, I am expecting only one
Steps to reproduce the error:
Start example/chat/listener
Start example/chat/dialer. Observe that a single connected to: message is logged on the listener
Terminate example/chat/listener with control-c
Start example/chat/listener - observe that two connected: messages are logged on the listener while only one is expected
More info:
In this scenario, I only ever receive one peer:disconnect event and only see one connection in connectionManager.size. I suspect there is in fact just one connection established (which is correct) but for some reason two peer:connect messages are emitted, one for a phantom connection?
The text was updated successfully, but these errors were encountered:
the dialer gets disconnected from the peer and keeps trying to connect to peers from the AddressBook (the listener is the only peer it knows)
the listener starts again
the dialer will attempt to dial the listener using the 2 known addresses for it
they both succeed at the same time as they are the same address... no time for the dialer to abort the second dial
The connectionManager will in fact have size one, but there are two open connections to the peer. More than improving the connection events per #647 we will work on not announcing private addresses, unless explicitly. This would result in the dialer only knowing one address for the peer, the one used to dial.
159862870720.04~040157c-Ubuntu SMP Fri Aug 28 18:02:16 UTC x86_64 GNU/LinuxType: Bug
Severity: Medium
Description: My listener is receiving two peer:connect events when a dialer reconnects, I am expecting only one
Steps to reproduce the error:
More info:
In this scenario, I only ever receive one peer:disconnect event and only see one connection in connectionManager.size. I suspect there is in fact just one connection established (which is correct) but for some reason two peer:connect messages are emitted, one for a phantom connection?
The text was updated successfully, but these errors were encountered: