ConnectionValidator: increase timeout to 57s #7456

When the gui thread blocks for several seconds it's possible for the
ConnectionValidator to timeout and decide that the account is
unreachable. It will then terminate all sync runs.

Increasing the timeout makes this less likely to happen. The tradeoff is
that real disconnects will not be detected as quickly.

This does not address the root cause but makes the symptom less likely
to appear.
This commit is contained in:
Christian Kamm 2019-09-06 14:33:37 +02:00 committed by Kevin Ottens
parent 41dc68f99c
commit a5c6612883
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -98,7 +98,7 @@ public:
Q_ENUM(Status);
// How often should the Application ask this object to check for the connection?
enum { DefaultCallingIntervalMsec = 32 * 1000 };
enum { DefaultCallingIntervalMsec = 62 * 1000 };
public slots:
/// Checks the server and the authentication.