mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
do not stop on keep-alive timer if sink is not completly flushed
This commit is contained in:
parent
dea39030bc
commit
b25b083866
@ -432,7 +432,7 @@ where
|
||||
return Err(DispatchError::DisconnectTimeout);
|
||||
} else if timer.deadline() >= self.ka_expire {
|
||||
// check for any outstanding response processing
|
||||
if self.state.is_empty() {
|
||||
if self.state.is_empty() && self.flags.contains(Flags::FLUSHED) {
|
||||
if self.flags.contains(Flags::STARTED) {
|
||||
trace!("Keep-alive timeout, close connection");
|
||||
self.flags.insert(Flags::SHUTDOWN);
|
||||
|
Loading…
Reference in New Issue
Block a user