Uh oh!
There was an error while loading. Please reload this page.
doc: add note regarding net.Socket default timeout - #31379
Conversation
mscdex
commented
Jan 16, 2020
This should also be added to master for consistency. |
mscdex
commented
Jan 16, 2020
Also, this kind of note should probably be moved to each of the separate, relevant ( |
Uh oh!
There was an error while loading. Please reload this page.
MylesBorins
commented
Jan 30, 2020
Reviewing this it seems like perhaps this should target master and then get backported to 12.x. If it is relevant to master we really shouldn't start with targeting LTS |
Prior to Node.js v13, http[2s] have a specific default timeout value which should not be confused with net.Socket default timeout. Fixes: nodejs#31378Fixes: nodejs#27556 Refs: nodejs#27704
aduh95
commented
Jan 31, 2020
To me, docs there are already specific enough regarding the default timeout value, what are the changes you suggest @mscdex? |
mscdex
commented
Feb 3, 2020
@aduh95 I meant the change in default timeout should be noted in the documentation for each appropriate subsystem, most likely listed in the |
| the socket. By default `net.Socket` do not have a timeout. | ||
| Prior to Node.js 13.0.0, [`http.Server`][], [`https.Server`][] and | ||
| [`http2.Http2Server`][] have a different default socket timeout value. |
There was a problem hiding this comment.
Can we incorporate this information into the YAML matter instead of having it here?
There was a problem hiding this comment.
Can we incorporate this information into the YAML matter instead of having it here?
Oh, wait, no, not that YAML matter. What's the rationale for putting this in net instead of http, https, and http2 docs?
There was a problem hiding this comment.
Apparently some users are referring to net docs when working with http.Server (see #31378); prior to Node.js 13, default values are consistent across all sockets in Node.js codebase EXCEPT for the timeout, I figured adding a note would help avoid the confusion.
Users who refer to http[s2] docs already have the correct information, I'm not sure there is much confusion from that side.
Trott
commented
Feb 3, 2020
In that case, can we just leave it out here? |
addaleax
left a comment
There was a problem hiding this comment.
Making it explicit that this should not land as-is for the reasons given by the others:
- This should not go into the
netdocs - This should be presented as YAML metadata.
aduh95
commented
Apr 18, 2020
I’m going to close this, docs on http* modules provide the correct information, I haven’t seen any report (except #31378) of a confusion on that area of the docs, and the default timeout thing doesn’t exist anymore as of Node.js 13. All in all, I don’t think it’s worth it, if someone feels differently, you’re welcome to open another PR. We could also close the linked issues maybe. |
Adding a note stating the difference between default timeout on http[2s] servers and on
net.Socket.Should be backported to v10 as well.
Fixes: #31378
Fixes: #27556
Refs: #27704
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes