开发者

NSURLConnection closed during HTTP Server Push

开发者 https://www.devze.com 2023-01-25 03:22 出处:网络
I am connecting to an HTTP url using NSURLConnection. I am supposed to get r开发者_高级运维esponse (more then one data package) after some time intervals, but NSURLConnection ,immediately, become clos

I am connecting to an HTTP url using NSURLConnection. I am supposed to get r开发者_高级运维esponse (more then one data package) after some time intervals, but NSURLConnection ,immediately, become closed. Is there is any way to prevent this? Or the CFNetwork would be only solution?


Are you using NSURLConnection within an NSOperation, or some of other kind of managed background thread?

The nature of async operations can cause this to happen. More information would help diagnose this issue though.

0

精彩评论

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

关注公众号