views:

172

answers:

1

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?

A: 

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.

oksk