Remove console logging of clientErrors from HTTP/socket.io
This commit is contained in:
parent
edcf17984f
commit
23333ee266
|
@ -228,7 +228,6 @@ module.exports = {
|
||||||
} else {
|
} else {
|
||||||
var server = require("http").createServer().listen(bind.port, bind.ip);
|
var server = require("http").createServer().listen(bind.port, bind.ip);
|
||||||
server.on("clientError", function (err, socket) {
|
server.on("clientError", function (err, socket) {
|
||||||
console.error("clientError on " + id + " - " + err);
|
|
||||||
try {
|
try {
|
||||||
socket.destroy();
|
socket.destroy();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -96,7 +96,6 @@ var Server = function () {
|
||||||
self.servers[id] = https.createServer(opts, self.express)
|
self.servers[id] = https.createServer(opts, self.express)
|
||||||
.listen(bind.port, bind.ip);
|
.listen(bind.port, bind.ip);
|
||||||
self.servers[id].on("clientError", function (err, socket) {
|
self.servers[id].on("clientError", function (err, socket) {
|
||||||
console.error("clientError on " + id + " - " + err);
|
|
||||||
try {
|
try {
|
||||||
socket.destroy();
|
socket.destroy();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -105,7 +104,6 @@ var Server = function () {
|
||||||
} else if (bind.http) {
|
} else if (bind.http) {
|
||||||
self.servers[id] = self.express.listen(bind.port, bind.ip);
|
self.servers[id] = self.express.listen(bind.port, bind.ip);
|
||||||
self.servers[id].on("clientError", function (err, socket) {
|
self.servers[id].on("clientError", function (err, socket) {
|
||||||
console.error("clientError on " + id + " - " + err);
|
|
||||||
try {
|
try {
|
||||||
socket.destroy();
|
socket.destroy();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue