mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-06 02:29:57 +02:00
Make timeout configurable
This commit is contained in:
parent
0054daadff
commit
f693ff42d3
12 changed files with 99 additions and 22 deletions
|
@ -1,8 +1,6 @@
|
|||
use std::time::Duration;
|
||||
|
||||
/// The timeout for the Send client for generic requests, `None` to disable.
|
||||
pub const CLIENT_TIMEOUT: Option<Duration> = Some(Duration::from_secs(30));
|
||||
/// The timeout for the Send client for generic requests, `0` to disable.
|
||||
pub const CLIENT_TIMEOUT: u64 = 30;
|
||||
|
||||
/// The timeout for the Send client used to transfer (upload/download) files.
|
||||
/// Make sure this is big enough, or file uploads will be dropped. `None` to disable.
|
||||
pub const CLIENT_TRANSFER_TIMEOUT: Option<Duration> = Some(Duration::from_secs(24 * 60 * 60));
|
||||
/// Make sure this is big enough, or file uploads will be dropped. `0` to disable.
|
||||
pub const CLIENT_TRANSFER_TIMEOUT: u64 = 24 * 60 * 60;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue