user3054852
user3054852

Reputation: 189

Nodejs max concurrent connections limited to 1012? (probably only on my machine xD)

So, I've been trying to test out my server code, but client sockets catch 'error' when 1012 connections have been established. Client simulator keeps trying 'til it's tried to connect as many times as I've told it to (obviously). Though, as stated, the server is unwilling to serve more than 1012 connections.

I'm running both client simulator & server on the same computer (might be dumb, but shouldn't it work anyway?).

(Running on socket.io)

Upvotes: 1

Views: 1000

Answers (1)

Andrei Karpuszonak
Andrei Karpuszonak

Reputation: 9034

To increase the limit of open connection/files in Linux:

ulimit -n 2048

Here is more info regarding ulimit

Upvotes: 1

Related Questions