Run Quiet, send a message, confirm it was received quickly
Switch wifi networks (or to mobile data)
Send another message immediately
Expected: it is always received immediately or after a short delay (a few seconds for Tor to connect)
Actual: it is received after several minutes (6 in one test, ~20 in another test)
Why is this taking so long and what can we do about it?
In a test on desktop, the logs were silent when I switched networks: no apparent problems but also no sign that it was aware of a problem. When messages were received, I looked back in the logs and there some libp2p PEER_DISCONNECTED events that set in motion new connections. I think this means libp2p + websockets + Tor takes a lot of time to learn it was disconnected, but we should confirm this.
Steps to reproduce:
Expected: it is always received immediately or after a short delay (a few seconds for Tor to connect) Actual: it is received after several minutes (6 in one test, ~20 in another test)
Why is this taking so long and what can we do about it?
In a test on desktop, the logs were silent when I switched networks: no apparent problems but also no sign that it was aware of a problem. When messages were received, I looked back in the logs and there some libp2p PEER_DISCONNECTED events that set in motion new connections. I think this means libp2p + websockets + Tor takes a lot of time to learn it was disconnected, but we should confirm this.