Connection-timeout watchdog never fires: starting_timer assigns nothing (== for =) #103
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
starting_timer,starting_timer_hop,starting_timer_bypassandstart_timer(aqomui_gui.py) all contain bare comparisons where assignments were intended:Consequence: when a connection attempt starts, the active flag is never reset, so
timeout()'s check —if getattr(self, "tunnel{}_active".format(tunnel)) == 0: kill()— sees the stale 1 from the previous connection and does nothing. The 15-second connection-timeout watchdog only works when no tunnel was ever active this session; every later hung connect/reconnect attempt just spins the cursor forever.Fix shape:
s/==/=/, but this is a real behavior change to the connect flow (the watchdog will actually start killing hung attempts), so it needs deliberate testing around server-switch and reconnect, and it interacts with #102'stunnel_terminatednow also resettingtunnel_active. Also worth fixing while there:start_timertouchingtunnel_bypass_activeregardless of which tunnel the timer is for.Found while fixing #69 (PR #102); left out of that PR deliberately.