<p>I pushed to commits to add the extra error codes in the attempt to reconnect list and enforce the reconnect flag via mysql api (it was done via setting the field in mysql connection structure, which is still left, just in case older versions don't have the api).</p>

<p>Not sure if for the ssl connect will solve it or it will require more explicit connecting functions. Try the patches and if goes well, then I will backport.</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-159001695">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZZpb-QZxFEvtumM_MvVOIaCz4BPMks5pI0LogaJpZM4Gmb_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-159001695"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>