Skip to content

fix(http2): use kSocket instead of kClient for socket in onPing callback#5037

Draft
deepview-autofix wants to merge 1 commit intonodejs:mainfrom
deepview-autofix:deepview/32f4def3d9
Draft

fix(http2): use kSocket instead of kClient for socket in onPing callback#5037
deepview-autofix wants to merge 1 commit intonodejs:mainfrom
deepview-autofix:deepview/32f4def3d9

Conversation

@deepview-autofix
Copy link
Copy Markdown
Contributor

In the onPing callback within onHttp2SendPing, the socket variable was incorrectly assigned this[kClient] (the client object) instead of this[kSocket] (the actual socket). This caused socket[kError] = error to set the error on the client object rather than the socket, so downstream code checking socket[kError] would miss the error.

In the onPing callback within onHttp2SendPing, the `socket` variable was
incorrectly assigned `this[kClient]` (the client object) instead of
`this[kSocket]` (the actual socket). This caused `socket[kError] = error`
to set the error on the client object rather than the socket, so
downstream code checking `socket[kError]` would miss the error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: DeepView Autofix <276251120+deepview-autofix@users.noreply.github.com>
Co-Authored-By: Nikita Skovoroda <chalkerx@gmail.com>
Signed-off-by: Nikita Skovoroda <chalkerx@gmail.com>
@deepview-autofix deepview-autofix marked this pull request as draft April 16, 2026 15:43
Copy link
Copy Markdown
Member

@ChALkeR ChALkeR left a comment

Choose a reason for hiding this comment

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

very unsure about the generated test, hence a draft
would be nice if someone could take a look

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.05%. Comparing base (bc0a19c) to head (c4b6b8c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5037      +/-   ##
==========================================
+ Coverage   93.03%   93.05%   +0.01%     
==========================================
  Files         110      110              
  Lines       35793    35793              
==========================================
+ Hits        33301    33306       +5     
+ Misses       2492     2487       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

4 participants