-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: circuit-relay connectivity fails sometimes #1143
Comments
Wondering if this blocking code of event handler is causing some issue, maybe we should be running this in a go-routine. go-waku/waku/v2/peermanager/topic_event_handler.go Lines 132 to 136 in 19a47a1
Also noticed that second time when connection succeeded, PeerJoin event was not received from underlying layer which did not trigger the metadata connection. |
Could be. Looking at the implementation of the events in go-libp2p p2p/host/eventbus/basic.go, i see that subscriptions by default have a buffer of 16 to avoid locking, but i'm probably missing the full context on why this lock could happen. |
Describe the bug
During dogfooding session, a node trying to connect to a circuit-relay address of another desktop node failed to connect first time, but subsequently succeeded in connecting in 2nd try.
To Reproduce
Steps to reproduce the behavior:
geth.log
in node2 grepping peerID of node1tail -f geth.log | grep <n1 peerID>
Expected behavior
Circuit relay connection should succeed always.
Logs of 2 tries where first time connection failed after some time. Second time connection was successful
failed_circuit-relay.log
As per logs, n2's address is
16Uiu2HAkwZiPPrXBPuFg2HthDYm6zL5hyvLsVmS22UossWNcLDGX
Possible issus:
cc @richard-ramos
The text was updated successfully, but these errors were encountered: