mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
don't log econnreset or timeout errors
This commit is contained in:
12
proxy.js
12
proxy.js
@@ -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
|
// track initial user connection setup
|
||||||
var conn_timeout;
|
var conn_timeout;
|
||||||
|
|
||||||
@@ -118,10 +126,6 @@ var Proxy = function(opt, cb) {
|
|||||||
self.next_socket(wait_cb);
|
self.next_socket(wait_cb);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
client_server.on('error', function(err) {
|
|
||||||
log.error(err);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Proxy.prototype.__proto__ = EventEmitter.prototype;
|
Proxy.prototype.__proto__ = EventEmitter.prototype;
|
||||||
|
|||||||
Reference in New Issue
Block a user