Does Multiple NSURLConnection make delay of performance?
Posted
by oksk
on Stack Overflow
See other posts from Stack Overflow
or by oksk
Published on 2010-03-19T09:13:47Z
Indexed on
2010/03/19
9:21 UTC
Read the original article
Hit count: 613
Hi all~.
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 ~!!!
one 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?
© Stack Overflow or respective owner