Maximize the number of simultaneous http-downloads

后端 未结 4 920
不知归路
不知归路 2020-12-16 00:35

I\'am trying to perform as many as possible simultaneous http-downloads an IPad2 ( ios6.0 ). This is pure for testing what is possible on this device. Even not interested in

4条回答
  •  执念已碎
    2020-12-16 00:41

    Just a bump to this in case anyone is still looking. I see it to be 4 simultaneous on my iPhone6S+. Here were my test steps:

    • I wrote a PHP script that does sleep(10) before echoing something back.
    • I added a button (so I can execute well after startup)
    • Hitting that button triggers 30 simultaneous NSURLConnections (synchronous requests, but each in a separate thread), and an NSLog.
    • The completion for each does an NSLog

    The results are like clockwork. The first responses (4 of them) come back 12 seconds after the request (presumably 2 seconds to turn the radio on or whatever), but then each subsequent block of 4 responses come 10 seconds after the prior block of 4. All 4 at a time.

    Hope that helps someone.

提交回复
热议问题