mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 13:51:50 +01:00
do not stop on keep-alive timer if sink is not completly flushed
This commit is contained in:
parent
61b1030882
commit
1ef0eed0bd
@ -286,7 +286,7 @@ where
|
|||||||
}
|
}
|
||||||
if timer.deadline() >= self.ka_expire {
|
if timer.deadline() >= self.ka_expire {
|
||||||
// check for any outstanding request handling
|
// check for any outstanding request handling
|
||||||
if self.tasks.is_empty() {
|
if self.tasks.is_empty() && self.flags.contains(Flags::FLUSHED) {
|
||||||
if !self.flags.contains(Flags::STARTED) {
|
if !self.flags.contains(Flags::STARTED) {
|
||||||
// timeout on first request (slow request) return 408
|
// timeout on first request (slow request) return 408
|
||||||
trace!("Slow request timeout");
|
trace!("Slow request timeout");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user