<p>Is there a limit with the number of SSL connections?</p>

<p>We are trying to connect through SSL with 2000 sessions. We have tried it a couple of times but it always dies at 1062nd. Is there a limit?</p>

[{'answer_id': 45707, 'author': 'Matthew Watson', 'author_id': 3839, 'author_profile': 'https://Stackoverflow.com/users/3839', 'pm_score': 1, 'selected': False, 'text': '<p>Yes, everything has a limit. As far as I\'m aware, there is no inherit limit with "SSL".. it is after all just a protocol.</p>\n\n<p>But, there is a limited amount of memory, ports, CPU on the machine you are connected to, from and every single one in between.</p>\n\n<p>The actually server you are connected to may have an arbitrary limit set too. </p>\n\n<p>This question doesn\'t have enough information to answer beyond "YES".</p>\n'}, {'answer_id': 45753, 'author': 'Paul Whelan', 'author_id': 3050, 'author_profile': 'https://Stackoverflow.com/users/3050', 'pm_score': 2, 'selected': False, 'text': '<p>Your operating system will have a limit on the number of open files if you are on linux\nulimit -a will show your various limits.</p>\n\n<p>I imagine yours is set to 1024 and some of the sessions just happened to have closed allow the figure of 1062 (this last bit is a guess)</p>\n'}, {'answer_id': 45781, 'author': 'Chris AtLee', 'author_id': 4558, 'author_profile': 'https://Stackoverflow.com/users/4558', 'pm_score': 1, 'selected': False, 'text': "<p>SSL itself doesn't have any limitations, but there are some practical limits you may be running into:</p>\n\n<ul>\n<li><p>SSL connections require more resources on both ends of the connection, so you may be hitting some built-in server limit.</p></li>\n<li><p>TCP/IP uses a 16-bit port number to identify connections, only some of which (around 16,000) are used for dynamic client connections.  This would limit the number of active connections a single client could make to the same server.</p></li>\n<li><p>On Linux, each process has a maximum number of file descriptors that it can have open, and each network connection uses one file descriptor.  I imagine Windows has a similar limit.</p></li>\n</ul>\n"}]
['https://Stackoverflow.com/questions/45686', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/130278/']