Skip to content

Commit

Permalink
Add keep alive and timeouts (#2271)
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed Jul 29, 2022
1 parent 938e5dd commit f3740c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/bin/zksync_api/src/api_server/rest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f3740c5

Please sign in to comment.