GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Http2 timeout documentation by sagitsofan · Pull Request #22798 · nodejs/node Conversation
|
|
|
||
| The `'timeout'` event is emitted when there is no activity on the Server for | ||
| a given number of milliseconds set using `http2server.setTimeout()`. | ||
| **Default:** `2 Minutes`. |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would remove the backticks here, those are typically used to enclose a class name or a literal (JS) value. Also, 'Minutes' should probably be lowercased.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
lower casing
|
fixed |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this. It would probably be better if the location of these defaults were more similar to the http docs: https://nodejs.org/api/http.html#http_server_timeout
Of course, these sections currently don't exist and they should also probably be created.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sure. working on it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
added new section for setTimeout method inside Http2SecureServer & Http2Server docs
|
Please review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for improving docs!
Just some nits)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| a given number of milliseconds set using `http2server.setTimeout()`. | ||
| **Default:** 2 minutes. | ||
|
|
||
| #### server.setTimeout([msecs][, callback]) |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Section headings are ABC-sorted, so this and the next added headings need to be placed after the #### server.close([callback]).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If an error is thrown if no callback is assigned, should we make the callback parameter in both signatures mandatory?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * `callback` {Function} | ||
| * Returns: {Http2Server} | ||
|
|
||
| Used to set the timeout value for http2 secure server requests, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
http2 secure server -> http2 server
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| Used to set the timeout value for http2 secure server requests, | ||
| and sets a callback function that is called when there is no activity | ||
| on the Http2Server after `msecs` milliseconds. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Http2Server -> `Http2Server`.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| and sets a callback function that is called when there is no activity | ||
| on the Http2Server after `msecs` milliseconds. | ||
|
|
||
| The given callback is registered as a listener on the 'timeout' event. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
'timeout' -> `'timeout'`
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| Used to set the timeout value for http2 secure server requests, | ||
| and sets a callback function that is called when there is no activity | ||
| on the Http2Server after `msecs` milliseconds. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Http2SecureServer -> `Http2SecureServer`
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| The given callback is registered as a listener on the 'timeout' event. | ||
|
|
||
| In case of no callback were assigned, a new `ERR_INVALID_CALLBACK` | ||
| error will be throw. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
throw -> thrown
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| and sets a callback function that is called when there is no activity | ||
| on the Http2Server after `msecs` milliseconds. | ||
|
|
||
| The given callback is registered as a listener on the 'timeout' event. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
'timeout' -> `'timeout'`
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| The given callback is registered as a listener on the 'timeout' event. | ||
|
|
||
| In case of no callback were assigned, a new `ERR_INVALID_CALLBACK` | ||
| error will be throw. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
throw -> thrown
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * `callback` {Function} | ||
| * Returns: {Http2SecureServer} | ||
|
|
||
| Used to set the timeout value for http2 server requests, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, in this section, http2 secure server seemed appropriate)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| Used to set the timeout value for http2 server requests, | ||
| and sets a callback function that is called when there is no activity | ||
| on the `Http2Server` after `msecs` milliseconds. |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
`Http2Server` -> `Http2SecureServer` :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
сс @nodejs/http2 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hello @sagitsofan and thank you for the contribution. P.S. If you have any question you can also feel free to contact me directly & בהצלחה |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you @refack appreciate this |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
For posterity, here is the line defining the 2 minutes timeout: node/lib/internal/http2/core.js Line 163 in b36c581
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CI-lite: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/878/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
New default timeout values of "2 minutes" were added into documentation inside 2 classes under "Event: 'timeout'": 1) Class: Http2SecureServer 2) Class: Http2Server New sections for `.setTimeout()` method were added inside `Http2SecureServer` & `Http2Server` docs. PR-URL: #22798 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
|
Landed in 19c0620 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closed but without merging, why is that? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
It is merged, but in some other way, not with GitHub interface. See more about this in https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md#landing-pull-requests |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
See also a note in https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md#step-10-landing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
New default timeout values of "2 minutes" were added into documentation inside 2 classes under "Event: 'timeout'": 1) Class: Http2SecureServer 2) Class: Http2Server New sections for `.setTimeout()` method were added inside `Http2SecureServer` & `Http2Server` docs. PR-URL: #22798 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
New default timeout values of "2 minutes" were added into documentation inside 2 classes under "Event: 'timeout'": 1) Class: Http2SecureServer 2) Class: Http2Server New sections for `.setTimeout()` method were added inside `Http2SecureServer` & `Http2Server` docs. PR-URL: #22798 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
New default timeout values of "2 minutes" were added into documentation inside 2 classes under "Event: 'timeout'": 1) Class: Http2SecureServer 2) Class: Http2Server New sections for `.setTimeout()` method were added inside `Http2SecureServer` & `Http2Server` docs. PR-URL: #22798 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
New default timeout values of "2 minutes" were added into documentation inside 2 classes under "Event: 'timeout'": 1) Class: Http2SecureServer 2) Class: Http2Server New sections for `.setTimeout()` method were added inside `Http2SecureServer` & `Http2Server` docs. PR-URL: nodejs#22798 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
New default timeout values of "2 minutes" were added into documentation inside 2 classes under "Event: 'timeout'": 1) Class: Http2SecureServer 2) Class: Http2Server New sections for `.setTimeout()` method were added inside `Http2SecureServer` & `Http2Server` docs. PR-URL: nodejs#22798 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
New default timeout values of "2 minutes" were added into documentation inside 2 classes under "Event: 'timeout'": 1) Class: Http2SecureServer 2) Class: Http2Server New sections for `.setTimeout()` method were added inside `Http2SecureServer` & `Http2Server` docs. Backport-PR-URL: #22850 PR-URL: #22798 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.