I am using long polling to check if there is any new incoming data.I am facing a problem when one request is waiting for a response the other requests are not being processed until this one completes.I am using jQuery Ajax post method and async = true.Can anyone help me with this.I think my requests are getting queued until the previous one timesout.
Asked
Active
Viewed 111 times
-2
-
Please narrow down the problem to one technology. This is very broad atm. – Lightness Races in Orbit Jan 21 '13 at 18:17
1 Answers
0
It isn't a problem with the ajax or javascript. It is your php locking the session. You need to add session_write_close();
to the php that is running on your long poll.

Pitchinnate
- 7,517
- 1
- 20
- 37