kyleitvss
asked on
PHP - AJAX - why is file access sequential - No Sessions
I have a php file that acts as a gateway to an application server. The php file acts as a connector, it collects values from the request and opens a socket to send a msg to the application server, and then echoes back the returned response - generally some HTML.
The process works correctly, however an individual user can only send requests in serial manner, ie one request to the php file must complete before the next queued request is executed. However multiple users can access the same file, and two simultaneous requests from two different browsers from the same PC will also work.
We are not using any php session management as the application server handles all of that.
I am confused as to why I cannot execute multiple calls to the same file from a single connection/'session'.
As a footnote, the PHP file used with IIS 7.5 does not exhibit this behaviour an individual connection can access the php file in a con-current manner.
Here are some settings from php.ini
session.save_handler = files
session.auto_start = 0
The environment is Ubuntu Server 10.04.4
PHP Version 5.3.2-1ubuntu4.14
Apache/2.2.14 (Ubuntu) Server built: Feb 14 2012 16:42:25
The process works correctly, however an individual user can only send requests in serial manner, ie one request to the php file must complete before the next queued request is executed. However multiple users can access the same file, and two simultaneous requests from two different browsers from the same PC will also work.
We are not using any php session management as the application server handles all of that.
I am confused as to why I cannot execute multiple calls to the same file from a single connection/'session'.
As a footnote, the PHP file used with IIS 7.5 does not exhibit this behaviour an individual connection can access the php file in a con-current manner.
Here are some settings from php.ini
session.save_handler = files
session.auto_start = 0
The environment is Ubuntu Server 10.04.4
PHP Version 5.3.2-1ubuntu4.14
Apache/2.2.14 (Ubuntu) Server built: Feb 14 2012 16:42:25
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
that's got be something you can tweak in the conf, though you will surely go about it that way you devised.
ASKER
Further testing proved the issue was a related to the uniqueness of the URL
Bu it's probably something in your Apache configuration.
Check the "accept Serialization - multiple sockets" section in this page:
http://httpd.apache.org/docs/2.2/misc/perf-tuning.html
PS: Sessions have nothing to do with it