<p>The "retry-on-connect" problem looks to be solved (need to confirm this) on each TCP-oriented database driver. However, retries is often hard-coded (e.g. db_mysql/dbase.c +300), or not even implemented at all (db_mysql/my_con.c +109).</p>

<p>Since this is really a common corner-case scenario for any backend, it would be nice to simply have a global parameter which dictates the number of attempted retries.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/472">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcibtvP0N4AtimaDtEx8u6ZwEUagdYks5oBRmogaJpZM4EEZ-x.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/OpenSIPS/opensips/issues/472"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>