Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Jan 5, 2024
1 parent 90cdab9 commit f73972d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ntex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions ntex/src/http/h1/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit f73972d

Please sign in to comment.