align behavior

This commit is contained in:
Yuki Okushi 2026-02-03 17:01:08 +09:00
parent bc498938fc
commit 2378bbddc5
2 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,9 @@
## Unreleased
- Minimum supported Rust version (MSRV) is now 1.88.
- Fix truncated body ending without error when connection closed abnormally. [#3067]
[#3067]: https://github.com/actix/actix-web/pull/3067
## 3.11.2
@ -96,9 +99,6 @@
- Add `body::to_bytes_limited()` function.
- Add `body::BodyLimitExceeded` error type.
### Fixed
- Fix truncated body ending without error when connection closed abnormally. [#3067]
### Changed
- Minimum supported Rust version (MSRV) is now 1.68 due to transitive `time` dependency.

View File

@ -1156,7 +1156,7 @@ where
let inner = inner.as_mut().project();
inner.flags.insert(Flags::READ_DISCONNECT);
if let Some(mut payload) = inner.payload.take() {
payload.set_error(io::Error::from(io::ErrorKind::UnexpectedEof).into());
payload.set_error(PayloadError::Incomplete(None));
payload.feed_eof();
}
};