Browse Source

Fix ability to disable TCP timeouts with setTimeout(0)

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
62d9bff06b
  1. 2
      lib/net.js

2
lib/net.js

@ -937,6 +937,8 @@ Stream.prototype.setTimeout = function (msecs) {
if (msecs > 0) {
timeout.enroll(this, msecs);
if (this.fd) { timeout.active(this); }
} else if (msecs === 0) {
timeout.unenroll(this);
}
};

Loading…
Cancel
Save