mirror of
https://github.com/actix/actix-web.git
synced 2024-12-28 02:50:39 +00:00
do not stop on keep-alive timer if sink is not completly flushed
This commit is contained in:
parent
61b1030882
commit
1ef0eed0bd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue