The max execution time is set up to be 30.
When I submit the requests of execution through the client browser, it shows the execution was running. It still hung up there after 30 seconds, after 2 minutes ...
And the browser hung there forever.
I have another page which saves the reports of the execution, so I open another browser window, and check out the report. It shows me the execution is still going even after 1 minute, 2 minutes...
Every time, I refresh the report page, it shows me new results of the execution. Finally, after 3 minutes, the report page stops updates, the whole execution was done.
The original browser which I submit the request for this execution still hung up there, it seems the time is running out. It never goes to the next page.
But the execution on the server took 3 minutes and it finished.
Now comes my question:
1) max execution time is 30 seconds. Why the execution on the server run for 3 minutes. And the client browser hung there and run out of time and never went to the next page, but didn't get the time out message?
2) If a loop can run 3 minutes on the server regardless that rhe max execution time is 30 seconds. How can the server knows that if I write a mistake infinte loop and stop the execution by itself? or I write a legtimate loop and that loop takes long time to finish and keep on running?
3) Sometimes, I write a infinite loop and the browser will get the message time runs out, so I will just close the browser. Do I have to go the the server to end the loop activies there or it is already ended?
I am confused here. Any help?
Thanks!