Skip to content

HTTPCLIENT-2398: break recursive pool callback chain#560

Closed
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:HTTPCLIENT-2398
Closed

HTTPCLIENT-2398: break recursive pool callback chain#560
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:HTTPCLIENT-2398

Conversation

@arturobernalg
Copy link
Copy Markdown
Member

Fix StackOverflowError from synchronous re-entrant callback dispatch in pools.
Add re-entrancy guard, factor releaseInternal, make drain iterative; mirror in LaxConnPool.
Preserves synchronous semantics; completions still drained inline.
Add regression tests: pre-fix overflows; post-fix iterates to high counts.

@arturobernalg arturobernalg requested a review from ok2c September 22, 2025 07:06
Guard callback drain in Strict/Lax pools; avoid fireCallbacks()->release() re-entry.
Prevents StackOverflowError under fast-fail connect/retry; no semantic change.
@ok2c
Copy link
Copy Markdown
Member

ok2c commented Sep 27, 2025

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.

2 participants