You do not need more than two active AJAX connections at the same time. Or you do a long poll, for example, the server responds with headers, and then sends the body of the object when there is data for delivery.
If you run the polling scheme as the one you described above with A, B, C, you can do this with one AJAX thread that alternates between three requests, but with a timeout value set to the next request interval. You create an imaginary timeline in which you distribute your requests to A, B, and C using a single AJAX thread.
source share