Allow people to set backlog. Need a better API.

This commit is contained in:
Ryan Dahl 2010-10-13 01:47:29 -07:00
parent f61b110cf6
commit 6691aca229

View File

@ -1187,7 +1187,7 @@ Server.prototype._startWatcher = function () {
};
Server.prototype._doListen = function () {
listen(this.fd, 128);
listen(this.fd, this._backlog || 128);
this._startWatcher();
};