Projects > cpp > Issues > Bug #2889

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

HttpClient raised ANR error when the connected WIFI is disconnected from internet.

Bug #2889 [Closed]
walzer@cocos2d-x.org 2013-10-07 11:47 . Updated about 2 years ago

Antonio Cld reported a bug of CCHttpClient, I quote his email below

The problem appears when the device is connected to WIFI, but the router has no connection to Internet, this causes a ANR when making a request. I also followed the tutorial in http://www.cocos2d-x.org/wiki/How\_to\_use\_CCHttpClient. I created an example uploaded on Git and posted on cocos2dx forum, but our client insists in solving this issue. https://github.com/antoniocid/test\_http

  • Platform: Android
  • Device: Is an Itermittent nature and may happen on any device. Most times that I seen is in Nexus S, furthermore in Android Emulator I can reproduce it always.
  • Android SDK Tools 22.0.1
  • Cocos2dx 2.1.5
walzer@cocos2d-x.org 2013-10-08 07:21
  • Target version set to 3.0-alpha1
walzer@cocos2d-x.org 2013-10-08 07:22
  • Description updated (diff)
zhangxm 2013-10-08 10:09
  • Assignee changed from zhangxm to WenHai
zhangxm 2013-11-15 03:49
  • Target version changed from 3.0-alpha1 to Candidate
walzer@cocos2d-x.org 2014-10-08 02:58

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8229

Atom PDF

Status:Closed
Start date:2013-10-07
Priority:Normal
Due date:
Assignee:WenHai
% Done:

0%

Category:all
Target version:Candidate

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.