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:
parent
530c205ce7
commit
0e673ce5f8
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue