我最近升级了我的一个应用程序以使用我的 js-c 互操作库。通过这样做,我注意到通过 NSURLConnection 更新 js 的主服务器身份验证需要很长时间才能处理服务器响应。然而,奇怪的是同步 NSURLConnections 工作正常。(请参阅我的日志中的 core.http)知道这里发生了什么吗?
2012-05-21 15:55:32.745 myApplication[6327:707] libcrpt::cl.start
2012-05-21 15:55:32.762 myApplication[6327:707] libcrpt::sv.invalidate push //[conn start];
2012-05-21 15:56:03.309 myApplication[6327:707] libcrpt::sv.invalidate auth //[conn didReceiveAuthenticationChallenge]
2012-05-21 15:56:04.092 myApplication[6327:707] libcrpt::sv.invalidate data //[conn didReceiveData]
2012-05-21 15:56:04.093 myApplication[6327:707] libcrpt::sv.invalidate pop //[conn connectionDidFinishLoading]
2012-05-21 15:56:04.329 myApplication[6327:707] libcrpt::core.init->push
2012-05-21 15:56:04.348 myApplication[6327:707] libcrpt::core.init->pop
2012-05-21 15:56:04.594 myApplication[6327:707] libcrpt::core.load->push
2012-05-21 15:56:04.608 myApplication[6327:707] libcrpt::core.load->pop
2012-05-21 15:56:04.624 myApplication[6327:707] libcrpt::core.settings->push
2012-05-21 15:56:04.635 myApplication[6327:707] libcrpt::core.settings->push
2012-05-21 15:56:04.639 myApplication[6327:707] libcrpt::core.settings->pop
2012-05-21 15:56:04.645 myApplication[6327:707] libcrpt::core.settings->pop
2012-05-21 15:56:04.667 myApplication[6327:707] libcrpt::db.testentity.meta.select->push
2012-05-21 15:56:04.681 myApplication[6327:707] libcrpt::db.testentity.meta.select->pop
2012-05-21 15:56:04.687 myApplication[6327:707] libcrpt::db.testentity.data.select->push
2012-05-21 15:56:04.714 myApplication[6327:707] libcrpt::core.http.get->push
2012-05-21 15:56:04.755 myApplication[6327:707] libcrpt::db.testentity.data.select->pop
2012-05-21 15:56:04.812 myApplication[6327:707] libcrpt::core.http.post->push
2012-05-21 15:56:04.840 myApplication[6327:707] libcrpt::core.http.post->push
2012-05-21 15:56:05.734 myApplication[6327:707] libcrpt::core.http.get->pop
2012-05-21 15:56:05.756 myApplication[6327:707] libcrpt::db.testentity.meta.make->push
2012-05-21 15:56:05.762 myApplication[6327:707] libcrpt::db.testentity.meta.make->pop
2012-05-21 15:56:05.868 myApplication[6327:707] libcrpt::core.http.post->pop