-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Setting the objectMode
option in the net.Socket()
constructor causes an abort on write
#40336
Labels
Comments
lpinca
changed the title
Setting the
Setting the Oct 5, 2021
objectMode
option the a net.Socket()
constructor causes an abort on writeobjectMode
option in the net.Socket()
constructor causes an abort on write
Not sure about this, I was considering reading the docs, but they seem to be outdated, the socket.connect(options[, connectListener]), or I do not know if this is misuse or we do not support that |
watilde
added a commit
to watilde/node
that referenced
this issue
Oct 6, 2021
watilde
added a commit
to watilde/node
that referenced
this issue
Oct 6, 2021
watilde
added a commit
to watilde/node
that referenced
this issue
Oct 7, 2021
watilde
added a commit
to watilde/node
that referenced
this issue
Oct 7, 2021
watilde
added a commit
to watilde/node
that referenced
this issue
Oct 7, 2021
nodejs-github-bot
pushed a commit
that referenced
this issue
Oct 13, 2021
Co-authored-by: Luigi Pinca <luigipinca@gmail.com> PR-URL: #40344 Fixes: #40336 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
nodejs-github-bot
pushed a commit
that referenced
this issue
Oct 13, 2021
Co-authored-by: Luigi Pinca <luigipinca@gmail.com> PR-URL: #40344 Fixes: #40336 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
targos
pushed a commit
that referenced
this issue
Oct 13, 2021
Co-authored-by: Luigi Pinca <luigipinca@gmail.com> PR-URL: #40344 Fixes: #40336 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
targos
pushed a commit
that referenced
this issue
Oct 13, 2021
Co-authored-by: Luigi Pinca <luigipinca@gmail.com> PR-URL: #40344 Fixes: #40336 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Version
v16.10.0
Platform
Darwin imac.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64
Subsystem
net
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always. No required condition.
What is the expected behavior?
An error should be thrown if any of the
objectMode
,readableObjectMode
, orwritableObjectMode
options are set when anet.Socket
is instantiated.What do you see instead?
The options are accepted but they not make sense in a socket context.
Additional information
The issue was found by @pimterry in websockets/ws#1952.
The text was updated successfully, but these errors were encountered: