diff --git a/proxy.js b/proxy.js index 9b6aae0..018b49e 100644 --- a/proxy.js +++ b/proxy.js @@ -106,8 +106,8 @@ var Proxy = function(opt, cb) { // close will be emitted after this socket.on('error', function(err) { - log.error(err); - socket.end(); + // we don't log here to avoid logging crap for misbehaving clients + socket.destroy(); }); self.sockets.push(socket);