<p>We are using async and exec to make a web-request as shown below:</p>

<pre><code>    $var(fullQueryClientReadyRequest) = "an url with params";
    async(exec("curl --connect-timeout 30 --max-time 30 \"$var(fullQueryClientReadyRequest)\"", "", "$var(restGetResponse)"), RT_RESUME_AFTER_RESPONSE);
</code></pre>

<p>We see the following (printed several times):</p>

<blockquote>
<p>osips[16437]: NOTICE:core:io_wait_loop_epoll: connection closed by the remote peer!<br>
osips[16437]: ERROR:core:io_wait_loop_epoll: [UDP_worker] unexpected event 10 on 1/1, data=0x7f215063bb68</p>
</blockquote>

<p>After this happens, the process becomes unresponsive.</p>

<p><strong>Note:</strong> We do not use $var(restGetResponse) in the RT_RESUME_AFTER_RESPONSE. However, we have it so that the exec will be blocking.</p>

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