What setting can cause the AMP server to only allow one request at a time in the browser?
I am using AMP server (Apache 1.3, MySQL 5.0, PHP 5.1.5) which I found only allows one connection / request per browser at a time. The easiest way to do this is to request a large download, which is sent through PHP and simultaneously tries to access another page. At the end, you expect the first request (file upload) to complete before another page loads.
I'm not sure if the problem is with Apache, MySQL or PHP. Any ideas with which I should start looking?
I can make other requests through other browsers on the same computer.
source to share
If you are using PHP sessions, this could be caused by a locked session file. To prevent simultaneous writes to the session file, only one script can be run per session. This means that subsequent requests will have to wait until the first is finished.
The session is recorded automatically when the script finishes, but you can do this earlier by calling session_write_close()
. If you are writing a script that will take a while to run, it would be wise to call that as soon as you no longer need access to the session data.
The documentation has several explanations here
source to share