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
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to