6 server = net.Server(function (socket) {
8 socket.on('error', function () {
16 var oldConnections, oldErrors;
18 setInterval(function () {
19 if (oldConnections != server.connections) {
20 oldConnections = server.connections;
21 console.log("SERVER %d connections: %d", process.pid, server.connections);
24 if (oldErrors != errors) {
26 console.log("SERVER %d errors: %d", process.pid, errors);