don't log econnreset or timeout errors

This commit is contained in:
Roman Shtylman
2014-12-11 19:34:08 -08:00
parent 57ebcc90e1
commit 5046c360ba

View File

@@ -33,6 +33,14 @@ var Proxy = function(opt, cb) {
});
});
client_server.on('error', function(err) {
if (err.code == 'ECONNRESET' || err.code == 'ETIMEDOUT') {
return;
}
log.error(err);
});
// track initial user connection setup
var conn_timeout;
@@ -118,10 +126,6 @@ var Proxy = function(opt, cb) {
self.next_socket(wait_cb);
}
});
client_server.on('error', function(err) {
log.error(err);
});
};
Proxy.prototype.__proto__ = EventEmitter.prototype;