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 // close will be emitted after this
socket.on('error', function(err) { socket.on('error', function(err) {
log.error(err); // we don't log here to avoid logging crap for misbehaving clients
socket.end(); socket.destroy();
}); });
self.sockets.push(socket); self.sockets.push(socket);