axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
923 stars 205 forks source link

cpp-tests HttpClientTest app freeze if no network connection #973

Closed qoozta closed 1 year ago

qoozta commented 1 year ago

Steps to Reproduce:

  1. Generate cpp-tests Xcode project.
  2. Turn off WiFi / Cellular network connection.
  3. Run cpp-tests project.
  4. Execute Test 16. Network Test > 1. HttpClientTest > Test Get
  5. App freeze.
halx99 commented 1 year ago

Caused by sendSync which will block main thread, it's normal behavior when your connnection not avaiable, after a long time when the sync request failed, the sendSync will return

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.