NSURLConnection开始很慢

时间:2012-05-21 14:12:44

标签: objective-c ios networking

我最近升级了我的一个应用程序以使用我的js-c interop lib。通过这样做,我注意到主服务器身份验证,也通过NSURLConnection更新js需要很长时间,直到它处理服务器响应。但是,stange的事情是同步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

0 个答案:

没有答案