Skip to content

Commit

Permalink
proxysocket: do not stop reads.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Feb 3, 2017
1 parent 91f36b3 commit b4a21ca
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/net/proxysocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ ProxySocket.prototype.write = function write(data, callback) {

ProxySocket.prototype.pause = function pause() {
this.paused = true;
this.socket.emit('tcp pause');
};

ProxySocket.prototype.resume = function resume() {
Expand All @@ -206,8 +205,6 @@ ProxySocket.prototype.resume = function resume() {
this.bytesRead += data.length;
this.emit('data', data);
}

this.socket.emit('tcp resume');
};

ProxySocket.prototype.destroy = function destroy() {
Expand Down

0 comments on commit b4a21ca

Please sign in to comment.