Browse Source

child_process: Remove stream.pause/resume calls

Unnecessary in streams2
v0.9.4-release
isaacs 12 years ago
parent
commit
81e356279d
  1. 3
      lib/child_process.js

3
lib/child_process.js

@ -110,7 +110,6 @@ var handleConversion = {
'net.Socket': { 'net.Socket': {
send: function(message, socket) { send: function(message, socket) {
// pause socket so no data is lost, will be resumed later // pause socket so no data is lost, will be resumed later
socket.pause();
// if the socket wsa created by net.Server // if the socket wsa created by net.Server
if (socket.server) { if (socket.server) {
@ -142,7 +141,6 @@ var handleConversion = {
got: function(message, handle, emit) { got: function(message, handle, emit) {
var socket = new net.Socket({handle: handle}); var socket = new net.Socket({handle: handle});
socket.readable = socket.writable = true; socket.readable = socket.writable = true;
socket.pause();
// if the socket was created by net.Server we will track the socket // if the socket was created by net.Server we will track the socket
if (message.key) { if (message.key) {
@ -153,7 +151,6 @@ var handleConversion = {
} }
emit(socket); emit(socket);
socket.resume();
} }
} }
}; };

Loading…
Cancel
Save