Kitura-WebSocket-NIO icon indicating copy to clipboard operation
Kitura-WebSocket-NIO copied to clipboard

Recieving ECONNRESET when trying to connect more than 200 clients

Open harish1992 opened this issue 5 years ago • 1 comments

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.

harish1992 avatar Oct 21 '19 06:10 harish1992

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 }

harish1992 avatar Nov 06 '19 07:11 harish1992