<p>Update after a few more days in production.</p>

<p>This still seem to happen, but very seldom:</p>

<pre><code>Nov 30 12:50:22 /usr/sbin/kamailio[25529]: WARNING: db_mysql [km_dbase.c:86]: db_mysql_submit_query(): driver error on ping: SSL connection error: socket layer receive error
Nov 30 12:50:22 /usr/sbin/kamailio[25529]: ERROR: db_mysql [km_dbase.c:128]: db_mysql_submit_query(): driver error on query: SSL connection error: socket layer receive error (2026)
Nov 30 12:50:22 /usr/sbin/kamailio[25529]: ERROR: <core> [db_query.c:235]: db_do_insert_cmd(): error while submitting query
Nov 30 12:50:22 /usr/sbin/kamailio[25529]: WARNING: db_mysql [km_dbase.c:91]: db_mysql_submit_query(): mysql thread id changed due to reconnect in mysql_ping
</code></pre>

<p>Not sure if it would make sense to re-try the mysql_ping a few times?</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-160621074">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZRdnwjSyZyitkTye9fhOBnTreoKGks5pLD9NgaJpZM4Gmb_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-160621074"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>