socket.io force a disconnect over XHR-polling

后端 未结 2 861
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 13:16

I have a client/server application using nodejs on the server and socket.io as the connection mechanism. For reasons relevant to my application I want to have only one activ

2条回答
  •  清歌不尽
    2020-12-03 13:31

    You can also get "Error: xhr poll error" if you run out of open file descriptors available. This is likely to happen during a load test.

    Check the current open file descriptor size:

    ulimit -n
    

    Increase it to a high number:

    ulimit -n 1000000
    

提交回复
热议问题