1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 09:12:57 +01:00

Ensure TCP connection is properly shut down when session is dropped

This commit is contained in:
Alex Wied 2024-10-31 22:37:45 -04:00
parent 77406cbb71
commit c8d9d06436
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# Changelog
## Unreleased
- Ensure TCP connection is properly shut down when session is dropped
## 0.3.0

View File

@ -145,6 +145,10 @@ impl Stream for StreamingBody {
return Poll::Ready(Some(Ok(mem::take(&mut this.buf).freeze())));
}
if this.closing {
return Poll::Ready(None);
}
Poll::Pending
}
}