If the page loads 2 minutes, you reach the limits of the network timeout of a typical browser. It really is a very long time to load the page. You might want to consider creating a separate process for processing lengthy processing. You can put the result in a database, file, etc. And use the survey to check if this is done.
If a process (exec ()) occurs, make sure that you use nohup, background it (&) and direct error output in / dev / null, otherwise it will not be disconnected from the web process and the web process will wait for completion.
Brent baisley
source share