From 6691aca2297b76cd3eb14506447f16a213dae2c6 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 13 Oct 2010 01:47:29 -0700 Subject: [PATCH] Allow people to set backlog. Need a better API. --- lib/net.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net.js b/lib/net.js index c233ffbfeb..92fbb5b9b2 100644 --- a/lib/net.js +++ b/lib/net.js @@ -1187,7 +1187,7 @@ Server.prototype._startWatcher = function () { }; Server.prototype._doListen = function () { - listen(this.fd, 128); + listen(this.fd, this._backlog || 128); this._startWatcher(); };