Boost C++ Libraries: Ticket #10212: Don't protect calls to SSL_accept by a static mutex https://svn.boost.org/trac10/ticket/10212 <p> Since this commit: commit ad1c1008321e9b14779816ae19dfaa261c2de293 Author: Christopher Kohlhoff &lt;chris@…&gt; Date: Fri Mar 18 00:25:54 2011 +0000 </p> <blockquote> <p> New SSL implementation. </p> </blockquote> <blockquote> <p> [SVN <a class="changeset" href="https://svn.boost.org/trac10/changeset/70096" title="New SSL implementation. ">r70096</a>] </p> </blockquote> <p> calls to SSL_connect are not protected by ssl_mutex_, but calls to SSL_accept are wrapped by a lock. </p> <p> I have a http/websocket server application which is extremelly slow in processing requests over a secured connection (about 700 RPS). Under peak load (3K RPS) all threads are waiting for the mutex (for example, 10 threads which are calling to io_service::run()). </p> <p> For every instance of io_service I use a single ssl_context. </p> <p> I'm uploading a patch I use to solve this problem. I have tested it under load for 5-6 months and I have no problems with using SSL_accept without this mutex so I propose the patch. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10212 Trac 1.4.3 Sergei Nikishin <nordsturm@…> Thu, 17 Jul 2014 15:12:26 GMT attachment set https://svn.boost.org/trac10/ticket/10212 https://svn.boost.org/trac10/ticket/10212 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ssl_accept_patch</span> </li> </ul> Ticket anonymous Mon, 07 Mar 2016 12:05:53 GMT <link>https://svn.boost.org/trac10/ticket/10212#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10212#comment:1</guid> <description> <p> I confirm slowdown at 500-700RPS. Also with many threads this can issue high LA </p> </description> <category>Ticket</category> </item> </channel> </rss>