Skip to content

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
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