mirror of https://github.com/fafhrd91/actix-web
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:
parent
8562b7d7bb
commit
785d02fc97
|
@ -2,6 +2,9 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
- Fix bug which prevents end-users from discovering when the remote peer has closed its side of the TCP connection.
|
||||
|
||||
## 3.11.0
|
||||
|
||||
- Update `brotli` dependency to `8`.
|
||||
|
|
|
@ -205,6 +205,7 @@ impl Inner {
|
|||
#[inline]
|
||||
fn feed_eof(&mut self) {
|
||||
self.eof = true;
|
||||
self.wake();
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Reference in New Issue