Skip to content

Commit ffa150b

Browse files
centromereAlex Wied
authored andcommitted
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.
1 parent 568bffe commit ffa150b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

actix-http/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- Add `header::CLEAR_SITE_DATA` constant.
8+
- Fix bug which prevents end-users from discovering when the remote peer has closed its side of the TCP connection.
89

910
### Changed
1011

actix-http/src/h1/payload.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ impl Inner {
205205
#[inline]
206206
fn feed_eof(&mut self) {
207207
self.eof = true;
208+
self.wake();
208209
}
209210

210211
#[inline]

0 commit comments

Comments
 (0)