<div dir="ltr">Thanks Jean.<div><br><div>Changing reactor kQueue on OSX fixed this issue.</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 13, 2014 at 7:49 PM,  <span dir="ltr"><<a href="mailto:exarkun@twistedmatrix.com" target="_blank">exarkun@twistedmatrix.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 01:28 pm, <a href="mailto:spuram@kiwiup.com" target="_blank">spuram@kiwiup.com</a> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi all,<br>
<br>
I am doing load testing on my twisted SSL server. I spawn threads(~2000)<br>
from the application and each thread will act as a SSL client and connect<br>
to the server.<br>
<br></div>
[snip]<div class="im"><br>
<br>
Now it fails after 1010 successful connections. I checked the number of<br>
open files of the server process it remains at 1010 and there are no stale<br>
open files.<br>
</div></blockquote>
<br>
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).<br>
<br>
Jean-Paul<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Client shows the same error<br></div>
*SSLError: [Errno 8] _ssl.c:503: EOF occurred in violation of protocol*<div class="im"><br>
<br>
Twisted logs on the server shows that it connects first and then<br>
disconnects with this error.<br>
<br></div>
*<<a href="http://127.0.0.1:5549" target="_blank">127.0.0.1:5549</a> <<a href="http://127.0.0.1:5549" target="_blank">http://127.0.0.1:5549</a>>>  connected*<br>
*<<a href="http://127.0.0.1:55249" target="_blank">127.0.0.1:55249</a> <<a href="http://127.0.0.1:55249" target="_blank">http://127.0.0.1:55249</a>>>  lost connection: [('SSL<br>
routines', 'SSL23_READ', 'ssl handshake failure')]*<div class="im"><br>
<br>
How can I fix this ? How should I approach to debug ?<br>
<br>
Thanks<br>
-Sumanth<br>
</div></blockquote>
<br><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.<u></u>com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-<u></u>bin/mailman/listinfo/twisted-<u></u>python</a><br>
</div></div></blockquote></div><br></div>