[minor] Remove setEncoding on incoming socket

This isn't needed as we don't do any string operations and `setEncoding`
results in a higher memory usage and is slower.
This commit is contained in:
Maciej Małecki 2012-08-10 21:39:39 +02:00
parent 1783ab0625
commit 812868ddfc

View File

@ -452,9 +452,6 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, buffer)
socket.pair.cleartext.socket.setKeepAlive(true, 0);
}
}
else {
socket.setEncoding('utf8');
}
}
//