[OpenSIPS-Devel] [opensips] Problem with using async and exec (#829)

Santhoshkumar Sunderrajan notifications at github.com
Tue Mar 15 21:32:35 CET 2016


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

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

We see the following (printed several times):

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

After this happens, the process becomes unresponsive.

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



---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/829
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160315/4f81d52b/attachment.htm>


More information about the Devel mailing list