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
After restarting the Relay client, it can't connect to a previously connected client, and thus not able to receive/send messages from/to it.
Connecting to a relay client it wasn't connected to (before restarting) does work.
Impact
...
To reproduce
Instantiate two relay clients.
Subscribe them to the same pubsub topic.
Connect the two of them with peerManager.connectRelay.
Run stop and start in one (or both) the nodes and their respective switches.
Running connectRelay and publish a message in their subscribed pubsub topic. Running connectRelay leads to peer_manager.nim:connectRelay:179, a timeout error.
Message won't arrive to the other relay client.
You can also check the test case named "Relay can receive messages after reboot and reconnect" in waku_relay/test_protocol.nim. Remember to rename it from xasyncTest to asyncTest before running, otherwise it'll be skipped.
Expected behavior
After restarting the client, I can successfully run connectRelay and then send/receive messages with the connected client.
@AlejandroCabeza thanks so much for the masterpiece issue. It is very well described and is indeed something we need to enhance. Also, notice that this issue needs the following PR to be merged vacp2p/nim-libp2p#1082
Problem
After restarting the Relay client, it can't connect to a previously connected client, and thus not able to receive/send messages from/to it.
Connecting to a relay client it wasn't connected to (before restarting) does work.
Impact
...
To reproduce
peerManager.connectRelay
.stop
andstart
in one (or both) the nodes and their respective switches.connectRelay
and publish a message in their subscribed pubsub topic. RunningconnectRelay
leads topeer_manager.nim:connectRelay:179
, a timeout error.You can also check the test case named
"Relay can receive messages after reboot and reconnect"
inwaku_relay/test_protocol.nim
. Remember to rename it fromxasyncTest
toasyncTest
before running, otherwise it'll be skipped.Expected behavior
After restarting the client, I can successfully run
connectRelay
and then send/receive messages with the connected client.nwaku version/commit hash
v0.20.0-rc.0-90-ga6d31c
00aa01b65c28aa16ca06efefba9b08ae7184eb35
The text was updated successfully, but these errors were encountered: