Skip to content

Commit

Permalink
child_process: Remove stream.pause/resume calls
Browse files Browse the repository at this point in the history
Unnecessary in streams2
  • Loading branch information
isaacs committed Dec 14, 2012
1 parent b4df1e6 commit 81e3562
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand All @@ -153,7 +151,6 @@ var handleConversion = {
}

emit(socket);
socket.resume();
}
}
};
Expand Down

0 comments on commit 81e3562

Please sign in to comment.