Remove console logging of clientErrors from HTTP/socket.io

This commit is contained in:
calzoneman 2015-10-30 22:26:20 -07:00
parent edcf17984f
commit 23333ee266
2 changed files with 0 additions and 3 deletions

View file

@ -228,7 +228,6 @@ module.exports = {
} else {
var server = require("http").createServer().listen(bind.port, bind.ip);
server.on("clientError", function (err, socket) {
console.error("clientError on " + id + " - " + err);
try {
socket.destroy();
} catch (e) {

View file

@ -96,7 +96,6 @@ var Server = function () {
self.servers[id] = https.createServer(opts, self.express)
.listen(bind.port, bind.ip);
self.servers[id].on("clientError", function (err, socket) {
console.error("clientError on " + id + " - " + err);
try {
socket.destroy();
} catch (e) {
@ -105,7 +104,6 @@ var Server = function () {
} else if (bind.http) {
self.servers[id] = self.express.listen(bind.port, bind.ip);
self.servers[id].on("clientError", function (err, socket) {
console.error("clientError on " + id + " - " + err);
try {
socket.destroy();
} catch (e) {