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).
This commit is contained in:
Martchus 2023-11-25 23:31:42 +01:00
parent d1a1c80ed5
commit becf6e873b
1 changed files with 1 additions and 1 deletions

View File

@ -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