Skip to content

Commit 21e2664

Browse files
remove request timeout in INTRA_CLUSTER_CLIENT
current: timeout set to 30 secs change: remove timeout this is to ensure querier does not timeout while processing the request and prism does not throw exception to client which processing is still happening we still need to handle the scenario when there is a timeout set in client while prism is still processing a request
1 parent 26422df commit 21e2664

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ pub static HTTP_CLIENT: Lazy<Client> = Lazy::new(|| {
9494
pub static INTRA_CLUSTER_CLIENT: Lazy<Client> = Lazy::new(|| {
9595
ClientBuilder::new()
9696
.connect_timeout(Duration::from_secs(3)) // set a timeout of 3s for each connection setup
97-
.timeout(Duration::from_secs(30)) // set a timeout of 30s for each request
9897
.pool_idle_timeout(Duration::from_secs(90)) // set a timeout of 90s for each idle connection
9998
.pool_max_idle_per_host(32) // max 32 idle connections per host
10099
.gzip(true) // gzip compress for all requests

0 commit comments

Comments
 (0)