proxysocket: do not stop reads.

This commit is contained in:
Christopher Jeffrey 2017-02-03 10:25:04 -08:00
parent 91f36b3d1c
commit b4a21cad2d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -191,7 +191,6 @@ ProxySocket.prototype.write = function write(data, callback) {
ProxySocket.prototype.pause = function pause() { ProxySocket.prototype.pause = function pause() {
this.paused = true; this.paused = true;
this.socket.emit('tcp pause');
}; };
ProxySocket.prototype.resume = function resume() { ProxySocket.prototype.resume = function resume() {
@ -206,8 +205,6 @@ ProxySocket.prototype.resume = function resume() {
this.bytesRead += data.length; this.bytesRead += data.length;
this.emit('data', data); this.emit('data', data);
} }
this.socket.emit('tcp resume');
}; };
ProxySocket.prototype.destroy = function destroy() { ProxySocket.prototype.destroy = function destroy() {