Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https downloader timeout on win/mac #18935

Merged
merged 4 commits into from
Aug 31, 2018
Merged

https downloader timeout on win/mac #18935

merged 4 commits into from
Aug 31, 2018

Conversation

PatriceJiang
Copy link
Contributor

@PatriceJiang PatriceJiang commented Jul 12, 2018

timeout error occurs when trying to download HTTPS content on windows.
the original polling sleep(delay) time is too long and should be separated from select timeout.

@v1993
Copy link
Contributor

v1993 commented Jul 12, 2018

It is hard to refer to 404 page :(.

@@ -518,7 +521,7 @@ namespace cocos2d { namespace network {
timeout.tv_sec = timeoutMS / 1000;
timeout.tv_usec = (timeoutMS % 1000) * 1000;

rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, 50);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the meaning of number 50

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my mistake :(

@drelaptop
Copy link
Contributor

I think it's better to add some description to explain what happened and what solved. @PatriceJiang

@PatriceJiang
Copy link
Contributor Author

it is a similar PR as cocos/engine-native#1382 . @minggo

@minggo minggo added this to the 3.18 milestone Aug 31, 2018
@minggo minggo merged commit f99c81c into cocos2d:v3 Aug 31, 2018
@PatriceJiang PatriceJiang deleted the fix7818 branch December 25, 2018 04:03
huangwei1024 pushed a commit to huangwei1024/cocos2d-x that referenced this pull request Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants