-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Resolve intermittent premature connection closed #19808
Conversation
Node 8 changed the keepAlive to default to 5 seconds from 5 minutes. This reverts that behavior. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
@@ -47,6 +51,9 @@ export function setupConnection(server, config) { | |||
} | |||
}); | |||
|
|||
// revert to previous 5m keepalive timeout in Node < 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, 2m
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
https://nodejs.org/api/http.html#http_server_keepalivetimeout has a blurb about it. New setting in Node 8. It mentions setting this to 0 for the same behavior as < 8 but 120 is effectively the same as it falls back to the timeout option above. |
💚 Build Succeeded |
Node 8 changed the keepAlive to default to 5 seconds from 5 minutes. This reverts that behavior. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Node 8 changed the keepAlive to default to 5 seconds from 5 minutes. This reverts that behavior. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
💚 Build Succeeded |
Node 8 changed the keepAlive to default to 5 seconds from 5 minutes. This reverts that behavior. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Node 8 changed the keepAlive to default to 5 seconds from 5 minutes. This reverts that behavior. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* Bump node to 6.17.0 * Resolve intermittent premature connection closed (#19808) Node 8 changed the keepAlive to default to 5 seconds from 5 minutes. This reverts that behavior. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co> * 6
Node 8 changed the keepAlive default to 5 seconds from 5 minutes. This reverts that behavior.
Having this low of a keepAlive timeout is problematic for health checks. For example, if you have a Load Balancer health check on a 5-second interval, the initial request starts the keepAlive and it's possible a subsequent request uses the keepAlive and is destroyed before it has been completed.
hapijs/hapi#3738