mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 01:12:24 +00:00
Workaround for #10
This commit is contained in:
@@ -48,5 +48,5 @@ pub fn make_app<AS: AddressbookStore + ?Sized, CS: CalendarStore + ?Sized>(
|
||||
frontend_config,
|
||||
)
|
||||
}))
|
||||
.service(web::redirect("/", "/frontend").see_other())
|
||||
// .service(web::redirect("/", "/frontend").see_other())
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use crate::config::Config;
|
||||
use actix_web::http::KeepAlive;
|
||||
use actix_web::HttpServer;
|
||||
use anyhow::Result;
|
||||
use app::make_app;
|
||||
@@ -75,6 +76,10 @@ async fn main() -> Result<()> {
|
||||
)
|
||||
})
|
||||
.bind((config.http.host, config.http.port))?
|
||||
// Workaround for a weird bug where
|
||||
// new requests might timeout since they cannot properly reuse the connection
|
||||
// https://github.com/lennart-k/rustical/issues/10
|
||||
.keep_alive(KeepAlive::Disabled)
|
||||
.run()
|
||||
.await?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user