mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
destroy client sockets upon error
This commit is contained in:
4
proxy.js
4
proxy.js
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user