Search code examples
iossafarihttprequestlong-polling

How many simultaneous connections per domain does Safari on iOS allow?


I'm just wondering how many simultaneous connections per domain does iOS Safari on iOS allow?

I've got a web page that uses long polling (up to about 40 seconds) and I am under the impression that all HTTP requests get queued until the server responds to the polling request (testing on iOS6 on iPad 2). Is that a real possibility?


Solution

  • Hmm I found this other question on Stackoverflow: Failed to create 5th http connection in iOS4

    There is a test page to run in the answer to that question: http://www.spasche.net/files/parallel_connections/.

    The first time I run the test on an empty cache on my iPad 2 on Safari (iOS 6.1.3), I got a surprising:

    "Your browser seems to use 0 simultaneous connections to this server."

    On the second time and thereafter I got the following:

    "Your browser seems to use 5 simultaneous connections to this server."