Reputation: 189
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
Reputation: 9034
To increase the limit of open connection/files in Linux:
ulimit -n 2048
Here is more info regarding ulimit
Upvotes: 1