From: Christian Kamm Date: Fri, 6 Sep 2019 12:33:37 +0000 (+0200) Subject: ConnectionValidator: increase timeout to 57s #7456 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~185 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a5c6612883a45b832870d1763379e6c6537f3633;p=nextcloud-desktop.git 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. --- diff --git a/src/gui/connectionvalidator.h b/src/gui/connectionvalidator.h index 079fc36e6..3ac94771a 100644 --- a/src/gui/connectionvalidator.h +++ b/src/gui/connectionvalidator.h @@ -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.