<p>There's been some new observations on this. When the <code>SSL connection error: socket layer receive error (2026)</code> error occurs, it's always the same Kamailio-process that encounters it, I've tried to restart Kamailio numerous times and it's always the same one (not the same pid obviously....):</p>

<pre><code>Process::  ID=10 PID=27816 Type=timer
</code></pre>

<p>I can verify that this process can perform (at least) one db_insert/db_query before this error occurs.</p>

<p>I can also verify from debugs that other processes are able to use the SSL database connections while the <code>timer</code> process cannot.</p>

<p>From what I can see once this error happens, the <code>timer</code> process cannot recover/reconnect and the SSL error does not go away until Kamailio is restarted.</p>

<p>Any hints on how to debug further are appreciated.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/406#issuecomment-179814253">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSy0iqOG0LSHI60Zqf3wYZNJi1i8ks5pgz_9gaJpZM4Gmb_R.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/406#issuecomment-179814253"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>