Issues with CCHttpClient

Hello, I have followed this tutorial http://www.cocos2d-x.org/wiki/How_to_use_CCHttpClient to make a POST request using CCHttpRequest and CCHttClient in cocos2dx 2.1.5. and I have discovered a problem that when the device is connected to a router but this router does not have Internet, I get the –1 response code, and after I get ANR. This is happening every time.

I attach a git to the code of the app I use:

Thank you.

Thanks for your code