cli icon indicating copy to clipboard operation
cli copied to clipboard

Loophole doesn't reconnect after a network outage

Open jarble opened this issue 3 months ago • 2 comments

My wireless network connection is occasionally disrupted. Whenever this happens, Loophole attempts to reconnect 5 times and then quits.

Instead of quitting when the network goes down, should Loophole stay open and attempt to reconnect when the network is available again?

jarble avatar Apr 03 '24 17:04 jarble

Hi @jarble we have a hard-coded retry count here: https://github.com/loophole/cli/blob/06767ef30bebf6095f1d93f6552d4727cc7ce241/internal/app/loophole/loophole.go#L102-L120 We could either always make it retry forever, or make the retry configurable via cli argument. @Morishiri what would you prefer?

0x7f avatar Apr 04 '24 11:04 0x7f

let's make it configurable via cli, with 0 being infinity

Morishiri avatar Apr 04 '24 15:04 Morishiri