1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-26 18:10:37 +00:00

do not stop on keep-alive timer if sink is not completly flushed

This commit is contained in:
Nikolay Kim 2018-11-08 20:46:13 -08:00
parent 61b1030882
commit 1ef0eed0bd

View file

@ -286,7 +286,7 @@ where
}
if timer.deadline() >= self.ka_expire {
// 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) {
// timeout on first request (slow request) return 408
trace!("Slow request timeout");