autorelay: don't discard static relays on disconnections #1782
Labels
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P1
High: Likely tackled by core team if no one steps up
Milestone
When autorelay looses connectivity with an static relay (maybe the relay was down, or maybe the client had network switching/problems) it removes the possibility of connecting to it again. Since handleStaticRelays is only called at the beginning, the only option is to restart autorelay
To reproduce it just insert this test in autorelay_test.go
A possible solution would be not discarding a static relay on connection errors (and send it back to candidates) or implement a timer to periodically call handleStaticRelay
Version Information
The text was updated successfully, but these errors were encountered: