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

fix(node/net): setNoDelay and setKeepAlive no-ops #1828

Merged
merged 1 commit into from
Jan 19, 2022
Merged

fix(node/net): setNoDelay and setKeepAlive no-ops #1828

merged 1 commit into from
Jan 19, 2022

Conversation

bnoordhuis
Copy link
Contributor

These methods have no directly observable side effects and should
therefore be safe to turn into no-ops. Doing so unblocks a number
of third-party modules.

Can be implemented once denoland/deno#13103
lands.

AaronO
AaronO previously requested changes Jan 17, 2022
Copy link
Contributor

@AaronO AaronO left a comment

Choose a reason for hiding this comment

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

These should return the socket (i.e: this), see: https://nodejs.org/api/net.html#socketsetnodelaynodelay

These methods have no directly observable side effects and should
therefore be safe to turn into no-ops. Doing so unblocks a number
of third-party modules.

Can be implemented once denoland/deno#13103
lands.
@bnoordhuis
Copy link
Contributor Author

These should return the socket (i.e: this)

These are the internal handle methods, not the public net.Socket methods. Those already return this.

@AaronO
Copy link
Contributor

AaronO commented Jan 18, 2022

These should return the socket (i.e: this)

These are the internal handle methods, not the public net.Socket methods. Those already return this.

My bad ! It was a quick review and I didn't check the full surrounding context ...

@bnoordhuis bnoordhuis merged commit fadcdc4 into denoland:main Jan 19, 2022
@bnoordhuis bnoordhuis deleted the node-net-no-ops branch January 19, 2022 08:08
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.

3 participants