LearnBoost/engine.io-client — Issue #15: node2node connection is down in forst minute
Author: alnikitich
Created: 2012-01-19 00:27:38+00:00
State: open

When i connect two nodes in first minute i have error message on client
and in next minute i have closed connection from client side.
This time is not depend on messages size and send frequlity

code:

1) server side

```javascript
var engine = require('engine')
, server = engine.listen(80)

var counter = 0;
function getTimeMeasurementJavaScript(name, func){
timeStart=new Date();
func();
totalTime = (new Date - timeStart);
console.log(timeStart + " > " + name + ":" + totalTime + "msec" + " " + counter++);
}

server.on('connection', function (socket) {

var execf = function(){
getTimeMeasurementJavaScript("test",function(){
socket.send("fff");
})
}

setTimeout(execf,10)
socket.on('message', function (data) {
setTimeout(execf,100)
})

socket.on('close', function (data) {
console.log ("connection closed")
})

socket.on('error', function (data) {
console.log ("error")
})
});
```

2) client side

```javascript
var eio = require('engine.io-client')

var socket = new eio.Socket({ host: 'localhost', port: 80 });

socket.on('open', function () {
console.log("open client connection")

socket.on('message', function (myJSONText) {
time=new Date();
console.log(" " + time + " message=" + myJSONText)
socket.send("ok")
});

socket.on('close', function () {
console.log("connection is closed")
});

socket.on('error', function (data) {
console.log ("error")
})
});
```

and a question:
how i can trace connection info ?