Skip to content

Commit 785d02f

Browse files
committed
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 8562b7d commit 785d02f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

actix-http/CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
### Fixed
6+
- Fix bug which prevents end-users from discovering when the remote peer has closed its side of the TCP connection.
7+
58
## 3.11.0
69

710
- Update `brotli` dependency to `8`.

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)