[Twisted-Python] Maximum number of SSL connections to the server

Sumanth Puram spuram at kiwiup.com
Tue Jan 14 02:05:20 MST 2014


Thanks Jean.

Changing reactor kQueue on OSX fixed this issue.


On Mon, Jan 13, 2014 at 7:49 PM, <exarkun at twistedmatrix.com> wrote:

> On 01:28 pm, spuram at kiwiup.com wrote:
>
>> Hi all,
>>
>> I am doing load testing on my twisted SSL server. I spawn threads(~2000)
>> from the application and each thread will act as a SSL client and connect
>> to the server.
>>
>> [snip]
>>
>>
>> Now it fails after 1010 successful connections. I checked the number of
>> open files of the server process it remains at 1010 and there are no stale
>> open files.
>>
>
> select() has a hard limit that is often 1024.  Make sure you're not using
> the select()-based reactor (which I think is probably the default on OS X).
>
> Jean-Paul
>
>> Client shows the same error
>> *SSLError: [Errno 8] _ssl.c:503: EOF occurred in violation of protocol*
>>
>>
>> Twisted logs on the server shows that it connects first and then
>> disconnects with this error.
>>
>> *<127.0.0.1:5549 <http://127.0.0.1:5549>>  connected*
>> *<127.0.0.1:55249 <http://127.0.0.1:55249>>  lost connection: [('SSL
>> routines', 'SSL23_READ', 'ssl handshake failure')]*
>>
>>
>> How can I fix this ? How should I approach to debug ?
>>
>> Thanks
>> -Sumanth
>>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140114/5dfdc319/attachment.html>


More information about the Twisted-Python mailing list