From af870c305b5202ec04d3929db1bcdee4de623889 Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Sat, 16 Mar 2024 00:01:15 +0100 Subject: [PATCH] disable keep-alive: workaround for timeouting requests after auth error --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 6740007..0834244 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use crate::config::Config; +use actix_web::http::KeepAlive; use actix_web::HttpServer; use anyhow::Result; use app::make_app; @@ -56,6 +57,8 @@ async fn main() -> Result<()> { HttpServer::new(move || make_app(cal_store.clone(), auth.clone())) .bind((config.http.host, config.http.port))? + // This is an unfortunate workaround for https://github.com/actix/actix-web/issues/1805 + .keep_alive(KeepAlive::Disabled) .run() .await?;