diff --git a/src/proxy/handler.rs b/src/proxy/handler.rs
index a3e7479..6e3bce9 100644
--- a/src/proxy/handler.rs
+++ b/src/proxy/handler.rs
@@ -227,11 +227,11 @@ fn build_upstream_request(req: Request
, upstream_uri: &Uri) -> anyhow::Res
builder.body(req.into_body()).map_err(Into::into)
}
-const DEFAULT_CONNECT_TIMEOUT_SECS: u64 = 5;
+const CONNECT_TIMEOUT_CEILING_SECS: u64 = 30;
pub fn create_http_client() -> Client {
let mut connector = HttpConnector::new();
- connector.set_connect_timeout(Some(Duration::from_secs(DEFAULT_CONNECT_TIMEOUT_SECS)));
+ connector.set_connect_timeout(Some(Duration::from_secs(CONNECT_TIMEOUT_CEILING_SECS)));
Client::builder(TokioExecutor::new())
.pool_idle_timeout(Duration::from_secs(90))
.build(connector)
@@ -239,7 +239,7 @@ pub fn create_http_client() -> Client {
pub fn create_https_client() -> Client, Body> {
let mut http_connector = HttpConnector::new();
- http_connector.set_connect_timeout(Some(Duration::from_secs(DEFAULT_CONNECT_TIMEOUT_SECS)));
+ http_connector.set_connect_timeout(Some(Duration::from_secs(CONNECT_TIMEOUT_CEILING_SECS)));
http_connector.enforce_http(false);
let tls_config = rustls::ClientConfig::builder()