socket.io
socket.io copied to clipboard
run many time's then connect will be slow and many client will be reconncet
i write a testcase to stress test. i run 1000 client to connect server once. when i run three time's the connect will be slowly and many reconnect event.
[root@localhost]# ulimit
unlimited
i don't know why, in the v0.9 not existed this question.
now,i run about 3300 client connect the server no response some debug info
Thu, 12 Feb 2015 07:05:04 GMT engine.io-client:socket socket closing - telling transport to close
Thu, 12 Feb 2015 07:05:04 GMT engine.io-client:socket socket close with reason: "forced close"
//success conncet
Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket socket receive: type "open", data "{"sid":"Rf4wpyO0iDMZS8LfAAFQ","upgrades":[],"pingInterval":25000,"pingTimeout":80000}"
Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket socket open
Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket flushing 1 packets in socket
Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket socket receive: type "message", data "0"
Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket socket receive: type "message", data "0/wsservices"Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket socket receive: type "open", data "{"sid":"Rf4wpyO0iDMZS8LfAAFQ","upgrades":[],"pingInterval":25000,"pingTimeout":80000}"
Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket socket open
Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket flushing 1 packets in socket
Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket socket receive: type "message", data "0"
Thu, 12 Feb 2015 08:24:25 GMT engine.io-client:socket socket receive: type "message", data "0/wsservices"
//error connect
Thu, 12 Feb 2015 08:24:26 GMT engine.io-client:socket writing ping packet - expecting pong within 80000ms
Thu, 12 Feb 2015 08:24:26 GMT engine.io-client:socket flushing 1 packets in socket
Thu, 12 Feb 2015 08:24:26 GMT engine.io-client:socket socket receive: type "pong", data "undefined"
Thu, 12 Feb 2015 08:24:26 GMT engine.io-client:socket writing ping packet - expecting pong within
server debug info
socket.io:client client close with reason transport close +2ms
socket.io:socket closing socket - reason transport close +0ms
i think the error must be socket not open.but i don't know why socket not open. if i deploy server on pc that's will be fine,but when i depoly on the remote server and connect by internet this error must be come out.
https://xkcd.com/979/