Skip to content

Commit b9039c2

Browse files
author
Devdutt Shenoi
committed
fix: increase timeouts
1 parent b890b1d commit b9039c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ pub const STORAGE_UPLOAD_INTERVAL: u32 = 60;
6363
// A single HTTP client for all outgoing HTTP requests from the parseable server
6464
static HTTP_CLIENT: Lazy<Client> = Lazy::new(|| {
6565
ClientBuilder::new()
66-
.connect_timeout(Duration::from_secs(3)) // set a timeout of 3s for each connection setup
67-
.timeout(Duration::from_secs(10)) // set a timeout of 10s for each request
66+
.connect_timeout(Duration::from_secs(5)) // set a timeout of 3s for each connection setup
67+
.timeout(Duration::from_secs(15)) // set a timeout of 10s for each request
6868
.pool_idle_timeout(Duration::from_secs(90)) // set a timeout of 90s for each idle connection
6969
.pool_max_idle_per_host(32) // max 32 idle connections per host
7070
.gzip(true) // gzip compress for all requests

0 commit comments

Comments
 (0)