Hello,<br><br>have anyone experienced a issue with stunnel when there's a larger number of concurrent connections (>50)?<br><br>I've got my application service and stress tester for it. I've placed stunnel in front of application service because I allow clients only to connect to application service using SSL. When stress tester communicates directly with application service with 100 concurrent connections (threads) there's no issue, but when I connect over SSL (thru stunnel) more than 50% of connections fails with error : connection refused :(<br>
<br>Seems like there's a limit in windows server for number of threads per process since stunnel does one thread per connection, right?<br><br>Any idea on how can I test this further?<br><br>stunnel information:<br>�stunnel 4.22 on x86-pc-mingw32-gnu with OpenSSL 0.9.8g 19 Oct 2007<br>
�Threading:WIN32 SSL:ENGINE Sockets:SELECT,IPv6<br>�<br>�Global options<br>�debug���������� = 5<br>�RNDbytes������� = 64<br>�RNDoverwrite��� = yes<br>�service�������� = stunnel<br>�taskbar�������� = yes<br>�<br>�Service-level options<br>
�cert����������� = stunnel.pem<br>�ciphers�������� = AES:ALL:!aNULL:!eNULL:+RC4:@STRENGTH<br>�key������������ = stunnel.pem<br>�session�������� = 300 seconds<br>�stack���������� = 65536 bytes<br>�sslVersion����� = SSLv3 for client, all for server<br>
�TIMEOUTbusy���� = 300 seconds<br>�TIMEOUTclose��� = 60 seconds<br>�TIMEOUTconnect� = 10 seconds<br>�TIMEOUTidle���� = 43200 seconds<br>�verify��������� = none<br><br>�Socket option defaults:<br>��� Option��������� Accept��� Local���� Remote��� OS default<br>
��� SO_DEBUG����������� --������� --������� --������������ 0<br>��� SO_DONTROUTE������� --������� --������� --������������ 0<br>��� SO_KEEPALIVE������� --������� --������� --������������ 0<br>��� SO_LINGER���������� --������� --������� --��� 0:0������ <br>
��� SO_OOBINLINE������� --������� --������� --������������ 0<br>��� SO_RCVBUF���������� --������� --������� --��������� 8192<br>��� SO_SNDBUF���������� --������� --������� --��������� 8192<br>��� SO_RCVLOWAT�������� --������� --������� --������� --��� <br>
��� SO_SNDLOWAT�������� --������� --������� --������� --��� <br>��� SO_RCVTIMEO�������� --������� --������� --�������� 0:0� <br>��� SO_SNDTIMEO�������� --������� --������� --�������� 0:0� <br>��� SO_REUSEADDR������������ 1��� --������� --������������ 0<br>
��� IP_TOS������������� --������� --������� --������������ 0<br>��� IP_TTL������������� --������� --������� --����������� 32<br>��� TCP_NODELAY�������� --������� --������� --������������ 0<br><br>Software configuration:<br>
�Windows Server 2003 R2 - Enterprise x64 Edition<br><br>Hardware configuration:<br>�Intel Core 2 Duo<br>�1 GB RAM<br><br>Kind regards,<br>fritz<br>