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

Disable NAGLE for lower latency sockets. #114

Merged
merged 4 commits into from
May 12, 2017

Conversation

ewindisch
Copy link
Contributor

Signed-off-by: Erica Windisch erica@iopipe.com

Signed-off-by: Erica Windisch <erica@iopipe.com>
@ewindisch
Copy link
Contributor Author

The fact the node docs are wrong is an open bug... nodejs/node#906

index.js Outdated
@@ -17,6 +18,17 @@ const httpsAgent = new https.Agent({
maxCachedSessions: 1,
keepAlive: true
});
httpsAgent.createConnection = function(options, callback) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Reading the Node source, this doesn't seem to be a solid replacement, at minimum parameter-wise, for createConnection: https://github.com/nodejs/node/blob/98e54b0bd4854bdb3e2949d1b6b20d6777fb7cde/lib/https.js#L75

@pselle
Copy link
Contributor

pselle commented Apr 21, 2017

Per that thread, it looked like the patch is this: https://github.com/mhdawson/io.js/commit/eb83dc31db2f68a67473dc6fdbcd521994d2b446.patch, which would be a patch to Node itself

@ewindisch ewindisch merged commit 3ac3ecf into iopipe:master May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants