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': {
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();
}
}
};

Loading…
Cancel
Save