diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-06-28 21:49:24 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-06-28 21:49:24 -0500 |
| commit | 750ce2d4672ec387523217eb2b5caab85873e0c3 (patch) | |
| tree | 144a582d26e0b0b806f8480a74ce8291cd5e0c93 /src | |
| parent | b92588f1f9f5678970fdc05460b70e31ad47cdb5 (diff) | |
| download | slskd-750ce2d4672ec387523217eb2b5caab85873e0c3.tar.gz | |
add ConnectionTimeout for FTP
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Options.cs | 12 | ||||
| -rw-r--r-- | src/slskd/Properties/slskd.yml | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 0993fa12..74125297 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -630,12 +630,22 @@ namespace slskd public bool OverwriteExisting { get; private set; } = true; /// <summary> + /// Gets the connection timeout value, in milliseconds. + /// </summary> + [Argument(default, "ftp-connection-timeout")] + [EnvironmentVariable("FTP_CONNECTION_TIMEOUT")] + [Description("FTP connection timeout, in milliseconds")] + [Range(0, int.MaxValue)] + public int ConnectionTimeout { get; private set; } = 5000; + + /// <summary> /// Gets the number of times failing uploads will be retried. /// </summary> [Argument(default, "ftp-retry-attempts")] [EnvironmentVariable("FTP_RETRY_ATTEMPTS")] [Description("number of times failing uploads will be retried")] - public int RetryAttempts { get; private set; } = 5; + [Range(0, 5)] + public int RetryAttempts { get; private set; } = 3; } } } diff --git a/src/slskd/Properties/slskd.yml b/src/slskd/Properties/slskd.yml index 492fb01c..8cb1c04a 100644 --- a/src/slskd/Properties/slskd.yml +++ b/src/slskd/Properties/slskd.yml @@ -56,4 +56,7 @@ # encryption_mode: auto # username: ~ # password: ~ +# remote_path: / +# overwrite_existing: true +# connection_timeout: 5000 # retry_attempts: 5
\ No newline at end of file |
