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

doc: keepAliveMsecs refers to an initial delay not interval #10702

Closed
wants to merge 1 commit into from
Closed

doc: keepAliveMsecs refers to an initial delay not interval #10702

wants to merge 1 commit into from

Conversation

fabiancook
Copy link
Contributor

To bring the http docs in-line with the net docs, keepAliveMsecs
should refer to the initial delay, rather than an interval between
keep alive probes.

There is currently no way to set the actual interval between keep
alive probes.

Checklist
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc

Fixes: #7335

To bring the http docs in-line with the net docs, keepAliveMsecs
should refer to the initial delay, rather than an interval between
keep alive probes.

There is currently no way to set the actual interval between keep
alive probes.
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem. lts-watch-v6.x labels Jan 9, 2017
@@ -102,8 +102,8 @@ added: v0.3.4
Can have the following fields:
* `keepAlive` {Boolean} Keep sockets around in a pool to be used by
other requests in the future. Default = `false`
* `keepAliveMsecs` {Integer} When using HTTP KeepAlive, how often
to send TCP KeepAlive packets over sockets being kept alive.
* `keepAliveMsecs` {Integer} When using HTTP KeepAlive, the initial delay
Copy link
Contributor

Choose a reason for hiding this comment

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

Still confusing.... the TCP keep alive socket option is not directly related to node's HTTP keepAlive option. Keep Alive packets will be sent whenever there is no data flowing over the socket for some period of time, whether HTTP keepAlive is enabled or not. Could you clarify?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, tried to make it more similar to socket.setKeepAlive

Set initialDelay (in milliseconds) to set the delay between the last data packet received and the first keepalive probe. Setting 0 for initialDelay will leave the value unchanged from the default (or previous) setting. Defaults to 0.

The main thing that should be changed is that its not related to how often it sends, but how long the idle is, as we see here it refers to TCP_KEEPIDLE in unix, not TCP_KEEPINTVL

@fabiancook
Copy link
Contributor Author

Looks like this pull request is bringing http.md into line #10715, will wait to see what comes out of it

@fabiancook fabiancook closed this Jan 31, 2017
@fabiancook fabiancook deleted the update-http-docs branch November 2, 2017 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants