<p>Hi<br>
Kamailio crushes with lots of such CRITICAL errors:</p>

<p>Aug 16 15:09:48 kam-fe1 kamailio[8485]: CRITICAL:  [tcp_read.c:1654]: handle_io(): io_watch_del failed for 0x7f3e610a3a70 id 105 fd -1, state -1, flags 4028, main fd -1, refcnt -2117 ([178.209.103.226]:40855 -> [178<br>
.209.103.226]:5060)<br>
Aug 16 15:09:48 kam-fe1 kamailio[8479]: CRITICAL:  [io_wait.h:594]: io_watch_del(): invalid fd -1, not in [0, 23)<br>
Aug 16 15:09:48 kam-fe1 kamailio[8481]: WARNING:  [tcp_read.c:1629]: handle_io(): F_TCPCONN connection marked as bad: 0x7f3e608454e8 id 78 refcnt -257<br>
Aug 16 15:09:48 kam-fe1 kamailio[8379]: INFO: </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/748">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZZ6xssU9YgCFQvkhjgEbWw3KSzXjks5qgrmVgaJpZM4JmLAZ">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZX_DPNRyf4Fv-U5SlFfBubj_mEtHks5qgrmVgaJpZM4JmLAZ.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/748"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Kamailio crushes when tcp errors invalid fd -1 (#748)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/748"}}}</script>