don't log bounce errors, just destroy the socket

This commit is contained in:
Roman Shtylman
2014-04-23 12:12:12 -04:00
parent 7ecef6b69c
commit 55feebdb9a

View File

@@ -81,7 +81,6 @@ function maybe_bounce(req, res, bounce) {
var stream = bounce(socket, { headers: { connection: 'close' } }); var stream = bounce(socket, { headers: { connection: 'close' } });
stream.on('error', function(err) { stream.on('error', function(err) {
log.error(err);
socket.destroy(); socket.destroy();
}); });