From becf6e873bca74da83163d12ad87b5a852113217 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 25 Nov 2023 23:31:42 +0100 Subject: [PATCH] Enable timeout for long-polling requests by default This setting does work quite well in my testing so far and it can help with the issue of the connection becoming stale (see https://github.com/Martchus/syncthingtray/issues/209). --- syncthingconnector/syncthingconnectionsettings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncthingconnector/syncthingconnectionsettings.h b/syncthingconnector/syncthingconnectionsettings.h index cf1c1ab..2e9bccc 100644 --- a/syncthingconnector/syncthingconnectionsettings.h +++ b/syncthingconnector/syncthingconnectionsettings.h @@ -56,7 +56,7 @@ struct LIB_SYNCTHING_CONNECTOR_EXPORT SyncthingConnectionSettings { static constexpr int defaultErrorsPollInterval = 30000; static constexpr int defaultReconnectInterval = 30000; static constexpr int defaultRequestTimeout = 0; - static constexpr int defaultLongPollingTimeout = 0; + static constexpr int defaultLongPollingTimeout = 60000; }; } // namespace Data