mirror of https://github.com/calzoneman/sync.git
Apparently this happens a lot, don't put it in the logfile
This commit is contained in:
parent
414cbfdc5d
commit
cf35c92391
|
@ -219,7 +219,7 @@ 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) {
|
||||||
Logger.errlog.log("clientError on " + id + " - " + err);
|
console.error("clientError on " + id + " - " + err);
|
||||||
try {
|
try {
|
||||||
socket.destroy();
|
socket.destroy();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -86,7 +86,7 @@ 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) {
|
||||||
Logger.errlog.log("clientError on " + id + " - " + err);
|
console.error("clientError on " + id + " - " + err);
|
||||||
try {
|
try {
|
||||||
socket.destroy();
|
socket.destroy();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -95,7 +95,7 @@ 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) {
|
||||||
Logger.errlog.log("clientError on " + id + " - " + err);
|
console.error("clientError on " + id + " - " + err);
|
||||||
try {
|
try {
|
||||||
socket.destroy();
|
socket.destroy();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue