-
Notifications
You must be signed in to change notification settings - Fork 95
Auto reconnect Delay #28
Comments
I have this same issue, but only on wireless. When I resume from suspend with a network cable plugged in, it works as intended, but the additional time for the system to bring up the wireless causes the connect to fail and the window to be closed. |
I have not the slightest clue why window.c#connection_fatal decides to exit when wakeup_reconnect triggers start_backend, but not when IDM_RECONNECT triggers start_backend. "handlers", perhaps. |
Hi, |
adding a sleep in windows/window.c (with a parameter) does fix my problem,though case PBT_APMQUERYSUSPENDFAILED:
if(session_closed && !back) {
time_t tnow = time(NULL);
if(last_reconnect && (tnow - last_reconnect) < 5) {
Sleep(1000);
}
/* some UI configurable delay, needed by the interface to wake up and reconnect properly*/
Sleep(1000*SOME_DELAY_IN_SECONDS);
last_reconnect = tnow;
logevent(NULL, "Woken up from suspend, reconnecting...");
term_pwron(term, FALSE);
start_backend();
} |
Didn't realise i'd previously raised this :/ Would it be possible to just add the sleep in the next build? Not sure anyone would even notice, most screens take more than 1s to turn on. Unsure whether 1s would be enough in my scenario, however. |
User configurable wakeup delay (well, more of a hang), at the same place @ferreol suggested, done! |
Can this issue be reopened? 0.65-t026 has lost this delay widget meaning all my sessions won't reconnect on wake. Please put it back! |
My machine takes 5 or so seconds to bring the NIC up when coming out of sleep. As a result, the Auto reconnect function gives me a host not found error and aborts the connection, closing the window.
Two suggestions:
The text was updated successfully, but these errors were encountered: