{"action":"created","issue":{"url":"https://api.github.com/repos/mcollina/mosca/issues/303","labels_url":"https://api.github.com/repos/mcollina/mosca/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/mcollina/mosca/issues/303/comments","events_url":"https://api.github.com/repos/mcollina/mosca/issues/303/events","html_url":"https://github.com/mcollina/mosca/issues/303","id":95354359,"number":303,"title":"Why there is a maxConnections set to 100k in server.js?","user":{"login":"cfan8","id":5689300,"avatar_url":"https://avatars.githubusercontent.com/u/5689300?v=3","gravatar_id":"","url":"https://api.github.com/users/cfan8","html_url":"https://github.com/cfan8","followers_url":"https://api.github.com/users/cfan8/followers","following_url":"https://api.github.com/users/cfan8/following{/other_user}","gists_url":"https://api.github.com/users/cfan8/gists{/gist_id}","starred_url":"https://api.github.com/users/cfan8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfan8/subscriptions","organizations_url":"https://api.github.com/users/cfan8/orgs","repos_url":"https://api.github.com/users/cfan8/repos","events_url":"https://api.github.com/users/cfan8/events{/privacy}","received_events_url":"https://api.github.com/users/cfan8/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-07-16T05:29:42Z","updated_at":"2015-07-25T05:48:05Z","closed_at":"2015-07-21T06:37:15Z","body":"[Code here](https://github.com/mcollina/mosca/blob/master/lib/server.js#L199).\r\n\r\nI'm trying to build a push system using mosca.js. While I was doing some concurrency test, I found this restraint that limits the total connections that a mosca server can hold to 100k. I changed it to a larger number and see no problem when the concurrent connections reached 250k on the server side. May I ask what's the purpose of setting this number and will there be any side effect if I changed it?"},"comment":{"url":"https://api.github.com/repos/mcollina/mosca/issues/comments/124803792","html_url":"https://github.com/mcollina/mosca/issues/303#issuecomment-124803792","issue_url":"https://api.github.com/repos/mcollina/mosca/issues/303","id":124803792,"user":{"login":"cfan8","id":5689300,"avatar_url":"https://avatars.githubusercontent.com/u/5689300?v=3","gravatar_id":"","url":"https://api.github.com/users/cfan8","html_url":"https://github.com/cfan8","followers_url":"https://api.github.com/users/cfan8/followers","following_url":"https://api.github.com/users/cfan8/following{/other_user}","gists_url":"https://api.github.com/users/cfan8/gists{/gist_id}","starred_url":"https://api.github.com/users/cfan8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfan8/subscriptions","organizations_url":"https://api.github.com/users/cfan8/orgs","repos_url":"https://api.github.com/users/cfan8/repos","events_url":"https://api.github.com/users/cfan8/events{/privacy}","received_events_url":"https://api.github.com/users/cfan8/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T05:48:05Z","updated_at":"2015-07-25T05:48:05Z","body":"@behrad I'm not quite sure if I stated clearly. Of course you can only have at most ~60k connections from one IP. You can assign multiple IPs to one machine and start several test instances each with a different IP. Further more, no NAT on your link to the server."}}