NSURLConnection on simulator and iphone performance issues

Posted by Nava Carmon on Stack Overflow See other posts from Stack Overflow or by Nava Carmon
Published on 2010-05-28T04:45:02Z Indexed on 2010/05/28 4:51 UTC
Read the original article Hit count: 373

I'm experiencing a weird problem and i wonder if anybody else has noticed this: I'm using NSURLConnection as it appears in apple's examples to get xml files from a certain server - pretty straight forward. And most of time it works, but sometimes it's just stuck after initialing and don't get into connection's delegate methods. I'm working with WiFi & 3G and the same server all the time. When it comes to didFailWithError i see that mostly it was a timeout error. When I enter same link in Safari it takes a second to bring data. And after another trial I can access the link. What might be the reason for such a weird behavior? How can I improve it? What is the role of cache policy with NSURLConnection?

Thanks,

Nava

© Stack Overflow or respective owner

Related posts about iphone

Related posts about nsurlconnection