diff --git a/src/servers/apis/server.rs b/src/servers/apis/server.rs index 39a68a856..40c4d0779 100644 --- a/src/servers/apis/server.rs +++ b/src/servers/apis/server.rs @@ -239,7 +239,9 @@ impl Launcher { match tls { Some(tls) => custom_axum_server::from_tcp_rustls_with_timeouts(socket, tls) .handle(handle) - .acceptor(TimeoutAcceptor) + // The TimeoutAcceptor is commented because TSL does not work with it. + // See: https://github.com/torrust/torrust-index/issues/204#issuecomment-2115529214 + //.acceptor(TimeoutAcceptor) .serve(router.into_make_service_with_connect_info::()) .await .expect("Axum server for tracker API crashed."), diff --git a/src/servers/http/server.rs b/src/servers/http/server.rs index faedaf921..4a6dccc6a 100644 --- a/src/servers/http/server.rs +++ b/src/servers/http/server.rs @@ -65,7 +65,9 @@ impl Launcher { match tls { Some(tls) => custom_axum_server::from_tcp_rustls_with_timeouts(socket, tls) .handle(handle) - .acceptor(TimeoutAcceptor) + // The TimeoutAcceptor is commented because TSL does not work with it. + // See: https://github.com/torrust/torrust-index/issues/204#issuecomment-2115529214 + //.acceptor(TimeoutAcceptor) .serve(app.into_make_service_with_connect_info::()) .await .expect("Axum server crashed."),