From f73972df9653ef6f18a69ba6af445ae97a9efcaa Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 5 Jan 2024 17:03:51 +0600 Subject: [PATCH] wip --- ntex/Cargo.toml | 2 ++ ntex/src/http/h1/dispatcher.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ntex/Cargo.toml b/ntex/Cargo.toml index ff1d5e63b..84a4afd56 100644 --- a/ntex/Cargo.toml +++ b/ntex/Cargo.toml @@ -100,6 +100,8 @@ webpki-roots = { version = "0.25", optional = true } brotli2 = { version="0.3.2", optional = true } flate2 = { version = "1.0.22", optional = true } +backtrace = "*" + [dev-dependencies] env_logger = "0.10" rand = "0.8" diff --git a/ntex/src/http/h1/dispatcher.rs b/ntex/src/http/h1/dispatcher.rs index 3114086c7..5b3412d8d 100644 --- a/ntex/src/http/h1/dispatcher.rs +++ b/ntex/src/http/h1/dispatcher.rs @@ -906,6 +906,10 @@ where "Keep-alive", ))) } else { + log::trace!("{}: Slow request timeout: {:?}\n{:?}", + self.io.tag(), + self.flags, + backtrace::Backtrace::new()); Err(DispatchError::SlowRequestTimeout) } }