From 5ad567803d49058f441dcef43c473534e2477522 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Fri, 18 Sep 2015 16:25:10 +0200 Subject: [PATCH] Set backlog on server listen --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 3f80ca02..af094d56 100755 --- a/app.js +++ b/app.js @@ -87,9 +87,9 @@ var server = cartodbWindshaft(serverOptions); // 128 is a good number if you have up to 1024 filedescriptors // 4 is good if you have max 32 filedescriptors // 1 is good if you have max 16 filedescriptors -server.maxConnections = global.environment.maxConnections || 128; +var backlog = global.environment.maxConnections || 128; -var listener = server.listen(serverOptions.bind.port, serverOptions.bind.host); +var listener = server.listen(serverOptions.bind.port, serverOptions.bind.host, backlog); var version = require("./package").version;