From 81e356279dcd37fda20d827fbab3550026e74c63 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 7 Nov 2012 17:19:14 -0800 Subject: [PATCH] child_process: Remove stream.pause/resume calls Unnecessary in streams2 --- lib/child_process.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index 1f9ddd543a..8509d53024 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -110,7 +110,6 @@ var handleConversion = { 'net.Socket': { send: function(message, socket) { // pause socket so no data is lost, will be resumed later - socket.pause(); // if the socket wsa created by net.Server if (socket.server) { @@ -142,7 +141,6 @@ var handleConversion = { got: function(message, handle, emit) { var socket = new net.Socket({handle: handle}); socket.readable = socket.writable = true; - socket.pause(); // if the socket was created by net.Server we will track the socket if (message.key) { @@ -153,7 +151,6 @@ var handleConversion = { } emit(socket); - socket.resume(); } } };