Skip to content

fix: panic error when release cs hook in case cs.hook is nil#610

Open
TienMinh25 wants to merge 1 commit intocapnproto:mainfrom
TienMinh25:fix/572-issue-panic-error-when-release-cshook
Open

fix: panic error when release cs hook in case cs.hook is nil#610
TienMinh25 wants to merge 1 commit intocapnproto:mainfrom
TienMinh25:fix/572-issue-panic-error-when-release-cshook

Conversation

@TienMinh25
Copy link
Copy Markdown

@TienMinh25 TienMinh25 commented Apr 8, 2026

This aims to address issue #572, as previously noted by @QuangTung97. In production, we sometimes handle around 10 million requests, and roughly 1% of them may panic when cs.hooks is nil. I haven’t been able to reproduce the issue in tests yet, but I suspect it may be caused by the defer tgt.Release() call at line 959 in /rpc/rpc.go.
image

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