[Freeswitch-users] Lua: io.popen/read blocking in other incoming calls

Rupa Schomaker rupa at rupa.com
Tue Jan 19 15:06:36 PST 2010


On Tue, Jan 19, 2010 at 3:03 PM, Dan <freeswitch-users at digitaldan.com>wrote:

> My lua script is calling wget through lua's io.popen to send
> and receive data from a web service. While the f:read to wget  is running,
> other incoming calls will block on the same io.popen call until the first
> call closes the pipe (with f:close()).
>

You might want to look at the api that mod_curl exposes to do what you want.
 No need to do an expensive system call just to call a webservice.

-- 
-Rupa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100119/5bdc92e3/attachment-0002.html 


More information about the FreeSWITCH-users mailing list