destroy client sockets upon error

This commit is contained in:
Roman Shtylman
2014-04-23 09:43:04 -04:00
parent 1b1d75b750
commit 852023bd73

View File

@@ -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);