Answer the question
In order to leave comments, you need to log in
Parallel execution of scripts?
On the server:
There is a whole site parser script using curl. Execution time > 15s.
At runtime, it writes its status to a temporary status.txt file.
On the client: An
Ajax request starts the parser, and until it completes, parallel requests are sent to get its status from the status.txt file.
Everything works, and the user sees what is being scanned at the moment. but, if I try to request the status.php script instead of status.txt in parallel, even just displaying the value of the session variable, it queues up and waits until the parser script finishes executing.
actually the question is why? or how to make the status.php script not wait for the parser to execute?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question