From f3740c546c963dd651903bb16f02b7f327b411a6 Mon Sep 17 00:00:00 2001 From: Danil Date: Wed, 13 Jul 2022 13:24:52 +0300 Subject: [PATCH] Add keep alive and timeouts (#2271) Signed-off-by: deniallugo --- core/bin/zksync_api/src/api_server/rest/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/bin/zksync_api/src/api_server/rest/mod.rs b/core/bin/zksync_api/src/api_server/rest/mod.rs index 525e6cf5f..bb59e7636 100644 --- a/core/bin/zksync_api/src/api_server/rest/mod.rs +++ b/core/bin/zksync_api/src/api_server/rest/mod.rs @@ -77,7 +77,9 @@ async fn start_server( .workers(super::THREADS_PER_SERVER) .bind(bind_to) .unwrap() - .shutdown_timeout(1) + .shutdown_timeout(60) + .keep_alive(10) + .client_timeout(60000) .run() .await .expect("REST API server has crashed");