Skip to content

fix ResponseChain buffer pool deadlock and slot leak - #800

Merged
Mzack9999 merged 2 commits into
mainfrom
fix/799-respchain-pool-deadlock
Oct 20, 2026
Merged

Mzack9999 merged 2 commits into
mainfrom
fix/799-respchain-pool-deadlock

Conversation

@dogancanbakir

@dogancanbakir dogancanbakir commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Fixes #799

  • New SizedPool.GetN acquires n slots at once; NewResponseChain uses it for its two buffers.
  • FullResponse() returns an unpooled buffer, since external callers cannot return it to the pool.

@dogancanbakir dogancanbakir self-assigned this Oct 19, 2026
@Mzack9999
Mzack9999 merged commit 199bb1f into main Oct 20, 2026
7 checks passed
@Mzack9999
Mzack9999 deleted the fix/799-respchain-pool-deadlock branch October 20, 2026 14:39
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.

httputil: ResponseChain can exhaust or deadlock the buffer pool

2 participants