|
Posted by a on 10/23/36 11:39
> If I was in your situation I would first try to figure out if the
> systemcall
> sometimes hangs. Maybe by making a script that calls in 100 times in a row
> (increase the scriptimeout first).
> Also try to figure out if the systemcall you make is maybe getting in
> trouble if it is called many times in the same second. (Maybe it is not
> threadsafe.)
My tests indicate that the script is run synchronously anyway, i.e. any new
post will wait for current php script processing to end before starting the
same script over. Also, the process called by exec starts and ends fine, it
doesn't hang. I even changed it to exit immediately, just to make sure there
were no other interferences. So the script hangs between the exit of my
process and its return to the script.
Also, 2 fast POSTs will not hang the script, only if there are more than 2,
sometimes 3, sometimes 4. So maybe there is a race condition between the
waiting posts, rather than between the one being processed and the one (or
more) waiting.
I will run some more tests where instead of doing exec, I will use some
other interprocess communication mechanism (tcp/ip for example) see if this
changes anything.
Thanks for your interest in this.
A
[Back to original message]
|