mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-10 09:52:13 +02:00
Added operation_timeout as a new configuration (#1685)
* Added operation_timeout as a new configuration
This commit is contained in:
parent
afc5acbe96
commit
4d25e68c65
|
@ -26,6 +26,7 @@
|
|||
+ [skip_symlinks](#skip_symlinks)
|
||||
+ [monitor_interval](#monitor_interval)
|
||||
+ [min_notify_changes](#min_notify_changes)
|
||||
+ [operation_timeout](#operation_timeout)
|
||||
+ [Selective sync via 'sync_list' file](#selective-sync-via-sync_list-file)
|
||||
* [Configuring the client for 'single tenant application' use](#configuring-the-client-for-single-tenant-application-use)
|
||||
* [Configuring the client to use older 'skilion' application identifier](#configuring-the-client-to-use-older-skilion-application-identifier)
|
||||
|
@ -351,6 +352,7 @@ See the [config](https://raw.githubusercontent.com/abraunegg/onedrive/master/con
|
|||
# sync_dir_permissions = "700"
|
||||
# sync_file_permissions = "600"
|
||||
# rate_limit = "131072"
|
||||
# operation_timeout = "3600"
|
||||
```
|
||||
|
||||
|
||||
|
@ -510,6 +512,15 @@ min_notify_changes = "50"
|
|||
```
|
||||
This option defines the minimum number of pending incoming changes necessary to trigger a desktop notification. This allows controlling the frequency of notifications.
|
||||
|
||||
#### operation_timeout
|
||||
Example:
|
||||
```text
|
||||
# sync_file_permissions = "600"
|
||||
# rate_limit = "131072"
|
||||
operation_timeout = "3600"
|
||||
```
|
||||
Operation Timeout is the maximum amount of time (seconds) a file operation is allowed to take. This includes DNS resolution, connecting, data transfer, etc.
|
||||
|
||||
#### Selective sync via 'sync_list' file
|
||||
Selective sync allows you to sync only specific files and directories.
|
||||
To enable selective sync create a file named `sync_list` in `~/.config/onedrive`.
|
||||
|
|
|
@ -132,6 +132,10 @@ final class Config
|
|||
// - It may be desirable to see what options are being passed in to performSync() without enabling the full verbose debug logging
|
||||
boolValues["display_sync_options"] = false;
|
||||
|
||||
// maximum time an operation is allowed to take
|
||||
// This includes dns resolution, connecting, data transfer, etc.
|
||||
longValues["operation_timeout"] = 3600;
|
||||
|
||||
// Determine the users home directory.
|
||||
// Need to avoid using ~ here as expandTilde() below does not interpret correctly when running under init.d or systemd scripts
|
||||
// Check for HOME environment variable
|
||||
|
|
|
@ -131,7 +131,7 @@ final class OneDriveApi
|
|||
http.dataTimeout = (dur!"seconds"(600));
|
||||
// maximum time an operation is allowed to take
|
||||
// This includes dns resolution, connecting, data transfer, etc.
|
||||
http.operationTimeout = (dur!"seconds"(3600));
|
||||
http.operationTimeout = (dur!"seconds"(cfg.getValueLong("operation_timeout")));
|
||||
|
||||
// Specify how many redirects should be allowed
|
||||
http.maxRedirects(5);
|
||||
|
|
Loading…
Reference in a new issue