开发者

Does Multiple NSURLConnection make delay of performance?

I made a multi files downloader. I implemented NSURLConnection using NSOperationQueue.

NSOpetationQueue has many NSURLConnection operations.

and, set MaxConcurrentOperationCount to 10.

I thought my code is right, But after run the project, it was wrong. there are some connection error has occured. files url were right. and file download was completed. but downloading files, occur "timed out" error.

It is so serious. I tested it with 8 files, and those total size is only 3M. But total download time is 2minutes ~!!!

on开发者_开发百科e file download spends only a few second. (2~3 s) but multi files download occur many overburden!! (2 minutes)

I don't know why it is... Do Anyone know what reason is?


Ah, my mistake~!!!

It is not problem. I checked network speed. and file exist in directory via simulator.

As a result, It depends on network speed ! one file, multi file is the same result.

I'm sorry about wrong question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜