Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 NSURLConnection 连接到 HTTP url。我应该在一段时间后得到响应(超过一个数据包),但是 NSURLConnection 立即关闭。有什么办法可以防止这种情况吗?或者 CFNetwork 将是唯一的解决方案?
您是在 NSOperation 中使用 NSURLConnection,还是在其他类型的托管后台线程中使用?
异步操作的性质可能导致这种情况发生。更多信息将有助于诊断此问题。