6 server = net.Server(function (socket) {
8 socket.on('end', function () {
12 socket.on('error', function () {
20 var oldConnections, oldErrors;
22 setInterval(function () {
23 if (oldConnections != server.connections) {
24 oldConnections = server.connections;
25 console.log("SERVER %d connections: %d", process.pid, server.connections);
28 if (oldErrors != errors) {
30 console.log("SERVER %d errors: %d", process.pid, errors);