Commit Graph

9 Commits

Author SHA1 Message Date
Martchus 30fa37f048 Allow to pause automatically on metered network connections
* Allow to pause all devices on metered network connections (devices will
  be automatically resumed when network is no longer metered)
* Allow to stop Syncthing when it was started via the built-in launcher
  on metered network connections (it will be automatically started again
  when the network connection is no longer metered)
* See https://github.com/Martchus/syncthingtray/issues/231
2024-02-15 21:02:18 +01:00
Martchus 699dcbdcac Revert "Enable timeout for long-polling requests by default"
* This reverts commit becf6e873b.
* This timeout might be problematic after all as it might cause
  Syncthing to lose its connection not being able to connect
  again on its own (see
  https://github.com/Martchus/syncthingtray/issues/217#issuecomment-1859002266)
2024-02-15 18:45:05 +01:00
Martchus 07ff8a5c1b Avoid TLS errors on Syncthing's automatic certificate renewal
* Reload the certificate when running into TLS errors an it looks like the
  certificate was renewed
* See https://github.com/Martchus/syncthingtray/issues/226
2024-01-15 21:29:24 +01:00
Martchus e45db9d668 Fix certificate errors when Schannel TLS backend is used
* Unify code paths for compiling expected SSL errors so in any case the
  expected errors are including the error types emitted by the Schannel
  backend
* See https://github.com/Martchus/syncthingtray/issues/223
2023-12-30 20:38:15 +01:00
Martchus becf6e873b 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).
2023-11-25 23:31:42 +01:00
Martchus fada3c98dd Allow configuring long-polling timeout 2023-11-06 15:06:40 +01:00
Martchus 69568ea6dd Set default transfer timeout to infinity
Apparently the default before introducing the request timeout was not 30000
(which is the value of QNetworkRequest::TransferTimeoutConstant). There was
actually no timeout. So let's restore this behavior for now as the main
intention was to make the timeout configurable but not change any defaults.
2023-07-04 19:33:30 +02:00
Martchus 690804be5c Add the request timeout to SyncthingConnectionSettings 2023-07-04 19:01:08 +02:00
Martchus 96e92f13a3 Avoid relying on symlink for include directories
Symlinks aren't working very well with Git under Windows so better avoid
them.
2023-02-27 18:27:33 +01:00