1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-16 21:26:34 +00:00

Wake Future when EOF is received

When a TCP FIN is received, the Future needs to be awakened. Without this, it
is not possible to detect a connection closure in end-user applications.
This commit is contained in:
Alex Wied 2024-10-31 22:15:25 -04:00 committed by Alex Wied
parent 568bffeb58
commit ffa150ba82
2 changed files with 2 additions and 0 deletions

View file

@ -5,6 +5,7 @@
### Added
- Add `header::CLEAR_SITE_DATA` constant.
- Fix bug which prevents end-users from discovering when the remote peer has closed its side of the TCP connection.
### Changed

View file

@ -205,6 +205,7 @@ impl Inner {
#[inline]
fn feed_eof(&mut self) {
self.eof = true;
self.wake();
}
#[inline]