From 7a6b5635eb565f3c4d858e76d0f8eae8d86e746c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 8 Apr 2010 07:19:42 -0700 Subject: [PATCH] Revert "Enable TCP timeout by default" Causing programs to not exit gracefully. This reverts commit cb84cde4d42637fd79ceacea1f0123995c23eea5. --- lib/net.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/net.js b/lib/net.js index 029a88a583..9968b66723 100644 --- a/lib/net.js +++ b/lib/net.js @@ -5,7 +5,6 @@ var dns = require('dns'); var kMinPoolSpace = 128; var kPoolSize = 40*1024; -var kDefaultTimeout = 60*1000; var debugLevel = process.env['NODE_DEBUG'] ? 1 : 0; function debug () { @@ -258,8 +257,6 @@ function _doFlush () { } function initStream (self) { - timeout.enroll(self, kDefaultTimeout); - self._readWatcher = ioWatchers.alloc(); self._readWatcher.callback = function () { // If this is the first recv (pool doesn't exist) or we've used up