Skip to content

[Triage] gthread evolution: lifecycle of an accepted connection - #3635

Open
aszubarev wants to merge 1 commit into
benoitc:masterfrom
aszubarev:feature/gthread-pending-connections
Open

[Triage] gthread evolution: lifecycle of an accepted connection#3635
aszubarev wants to merge 1 commit into
benoitc:masterfrom
aszubarev:feature/gthread-pending-connections

Conversation

@aszubarev

@aszubarev aszubarev commented May 17, 2026

Copy link
Copy Markdown

Instead of waiting for client data in a pool thread, we can wait for it in the main thread — an approach similar to what was used in versions v21.0.0 to v23.0.0. But this time, set a timeout for the connection. When the connection expires, it will be closed in the murder_pending method.

Advantages:

  • Also works with fast connection
  • Also works during a graceful shutdown (thx v24+)
  • Avoids creating temporary poller for prevent thread pool exhaustion
  • No blocking of the thread even for 5 seconds!

Closes #3634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant