Mholloway has uploaded a new change for review. https://gerrit.wikimedia.org/r/316013
Change subject: Update to service-template-node v0.4.1 ...................................................................... Update to service-template-node v0.4.1 Change-Id: Id13d1b44f98f583f4dfe699a5e0d1ea8626174ba --- M app.js M lib/api-util.js 2 files changed, 9 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps refs/changes/13/316013/1 diff --git a/app.js b/app.js index 1fe8a88..3cf0e1a 100644 --- a/app.js +++ b/app.js @@ -205,6 +205,14 @@ }).then(function () { app.logger.log('info', 'Worker ' + process.pid + ' listening on ' + (app.conf.interface || '*') + ':' + app.conf.port); + + // Don't delay incomplete packets for 40ms (Linux default) on + // pipelined HTTP sockets. We write in large chunks or buffers, so + // lack of coalescing should not be an issue here. + server.on("connection", function(socket) { + socket.setNoDelay(true); + }); + return server; }); diff --git a/lib/api-util.js b/lib/api-util.js index 8d70c65..6e11e54 100644 --- a/lib/api-util.js +++ b/lib/api-util.js @@ -111,6 +111,7 @@ }; } app.restbase_tpl = new Template(app.conf.restbase_req); + } /** -- To view, visit https://gerrit.wikimedia.org/r/316013 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id13d1b44f98f583f4dfe699a5e0d1ea8626174ba Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/mobileapps Gerrit-Branch: master Gerrit-Owner: Mholloway <mhollo...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits