<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>My lua script is calling wget through lua's io.popen to send and&nbsp;receive&nbsp;data from a web service. While the f:read to wget &nbsp;is running, other incoming calls will block on the same io.popen call until the first call closes the pipe (with f:close()). &nbsp;<div><br></div><div>&nbsp;I had assumed every incoming call was on its own thread and that each had its own lua instance. &nbsp;Is there a global lock happening here? Below is the runCommand call and the two start and stop methods that are getting called in my script when the call begins and ends (notice they even talk to different hosts, so its not the web server hanging). &nbsp;I have put in debugging statements and its&nbsp;definitely&nbsp; hanging &nbsp;trying to call io.popen and not on the f:read. &nbsp;I noticed on the mod_python page &nbsp;(http://wiki.freeswitch.org/wiki/Mod_python#Known_Bugs) that it had read issues that were fixed in 12958, could this be related? &nbsp;I'm on svn trunk version&nbsp;16272 on 32bit debian etch.<div><br></div><div>Thanks,</div><div>Dan-</div><div><pre>function runCommand(command)
    local f = io.popen(command) -- runs command
    local l = f:read("*a") -- read output of command
    f:close()
    return l
end
</pre><pre><pre>function notifyStart(id)
    local url = "http://host1/start?id=" .. id
    
    local wget = "/usr/bin/wget " .. url</pre><pre>    local out = runCommand(wget)
</pre><pre>    return out;</pre><pre>end
</pre><pre><br></pre><pre><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal; "><pre><pre>function notifyStop(id)
    local url = "http://host2/start?id=" .. id
    
    local wget = "/usr/bin/wget " .. url</pre><pre>    local out = runCommand(wget)
</pre><pre>    return out;</pre><pre>end</pre></pre></span></pre></pre></div></div></div></body></html>