Kitura-WebSocket-NIO
Kitura-WebSocket-NIO copied to clipboard
Recieving ECONNRESET when trying to connect more than 200 clients
I modified this JS Client to create random number of client instances and connect to WebSocketServer created using Kitura-WebSocket-NIO service. The server works fine when the number of clients connected are less than 200, but sends ECONNRESET
when the number exceeds 200. This issue needs to be investigated.
Adding ws.on('error', function(e))
in client here produces the following log :
{ Error: connect ECONNRESET 127.0.0.1:9000 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'connect', address: '127.0.0.1', port: 9000 }