we have the system like the following:
- Client: A regular client
- P Server: An apache server which basically runs like a proxy (forwards queries to M Server)
- M Server: Main server. All the work is done here.
and
Query Q1
is not equal to query Q1'
because P Server adds some more variables (like server time, client IP) Q1 before sending it to M Server.
Response R1 doesn't change at all. It is forwarded to client without changing.
Same applies for Q2.
The problem is, if ajax requests with Q1
and Q2
are sent at the same time, Q2
waits in P Server for R1
to finish.
So this is basically a PHP/Apache problem. But, I don't know how to dig this problem. Is it multiple php script problem or multiple request problem?
I tried session_write_close()
but that didn't change anything.