Skip to content

actix-http: linger after early responses#3985

Merged
JohnTitor merged 1 commit intoactix:mainfrom
JohnTitor:h1-linger
Apr 18, 2026
Merged

actix-http: linger after early responses#3985
JohnTitor merged 1 commit intoactix:mainfrom
JohnTitor:h1-linger

Conversation

@JohnTitor
Copy link
Copy Markdown
Member

@JohnTitor JohnTitor commented Mar 23, 2026

PR Type

PR_TYPE

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Tweaked version of #3972, making timeout configurable and usable via client_disconnect_timeout. Unlike the original, this itself doesn't not change the linger timeout so that existing behavior wouldn't be changed.

Close #3972

@github-actions github-actions Bot added A-http project: actix-http A-web project: actix-web labels Mar 23, 2026
@JohnTitor JohnTitor marked this pull request as ready for review March 24, 2026 12:08
@JohnTitor JohnTitor requested a review from robjtede March 24, 2026 12:08
Comment thread actix-web/src/server.rs
Comment on lines 247 to +248
///
/// By default client timeout is set to 5000 milliseconds.
/// By default client timeout is set to 1000 milliseconds.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-existing but this looks incorrect.

Co-authored-by: Ophir LOJKINE <contact@ophir.dev>
@JohnTitor JohnTitor merged commit 10609f7 into actix:main Apr 18, 2026
14 of 15 checks passed
@JohnTitor JohnTitor deleted the h1-linger branch April 18, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-http project: actix-http A-web project: actix-web B-semver-minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant