Geary.ClientService: Update connectivity timeouts

Swap reachable and unreachable timeouts periods so that connections
are dropped sooner and not re-established too early.
This commit is contained in:
Michael Gratton 2020-04-11 13:10:51 +10:00 committed by Michael James Gratton
parent 530c205ce7
commit 0e673ce5f8

View file

@ -17,8 +17,13 @@
public abstract class Geary.ClientService : BaseObject, Logging.Source {
private const int BECAME_REACHABLE_TIMEOUT_SEC = 1;
private const int BECAME_UNREACHABLE_TIMEOUT_SEC = 3;
// Keep the unreachable timeout short so that when the connection
// actually goes down connections get pulled down ASAP. Keep the
// reachable timeout higher to avoid trying to reconnect
// immediately on notification of being reachable, which can be a
// bit bouncy
private const int BECAME_REACHABLE_TIMEOUT_SEC = 3;
private const int BECAME_UNREACHABLE_TIMEOUT_SEC = 1;
/**