Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop reading empty buffers on node:net #3427

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Jan 29, 2025

Fixes #3425

@anonrig anonrig requested review from vicb and jasnell January 29, 2025 15:17
@anonrig anonrig requested review from a team as code owners January 29, 2025 15:17
@anonrig anonrig requested a review from fhanau January 29, 2025 15:17
src/node/net.ts Outdated Show resolved Hide resolved
src/node/net.ts Outdated Show resolved Hide resolved
@anonrig anonrig force-pushed the yagiz/stop-reading-empty-buffers branch 4 times, most recently from 5633046 to 530d541 Compare January 29, 2025 15:40
@anonrig anonrig force-pushed the yagiz/stop-reading-empty-buffers branch from 530d541 to 6496636 Compare January 29, 2025 15:41
@anonrig anonrig enabled auto-merge (rebase) January 29, 2025 15:41
Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

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

Is there any reasonable way to add a test for this?

@anonrig
Copy link
Member Author

anonrig commented Jan 29, 2025

Is there any reasonable way to add a test for this?

There is a test for it already in node:net which was printing an error on the log, but it's not at the moment. I think it's unnecessary since the following function has a similar check in 10 lines below.

@anonrig anonrig disabled auto-merge January 29, 2025 16:05
@anonrig anonrig merged commit 7451fc3 into main Jan 29, 2025
16 of 17 checks passed
@anonrig anonrig deleted the yagiz/stop-reading-empty-buffers branch January 29, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants