8000 Windows: pass writefds also as exceptfds to select() by nmaier · Pull Request #975 · aria2/aria2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Windows: pass writefds also as exceptfds to select() #975

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

Closed
wants to merge 1 commit into from

Conversation

nmaier
Copy link
Collaborator
@nmaier nmaier commented Jul 31, 2017

Fixes GH-969

@tatsuhiro-t looks good? I added dummysocket to the readfds now too. Shouldn't really make a difference unless readfds is otherwise empty at which point select might have failed sometimes in the past IIRC.

winsock notifies connect() failures on exceptfds instead of writefds.
Fixes GH-969
Copy link
Collaborator
@tatsuhiro-t tatsuhiro-t left a comment

Choose a reason for hiding this comment

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

Other than nits, I think this is ready for merge.

fdmax_ = dummySocket_;
#else // !__MINGW32__
#else // __MINGW32__
Copy link
Collaborator

Choose a reason for hiding this comment

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

As far as I know, the convention in aria2 source code is negate condition on "#else". So the original code is right.
It should be // !__MINGW32__

#endif // !__MINGW32__
FD_ZERO(&rfdset_);
FD_ZERO(&wfdset_);
#endif // __MINGW32__
Copy link
Collaborator

Choose a reason for hiding this comment

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

// !__MINGW32__

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

uh, clang-format did that...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you fix it?

@nmaier nmaier closed this in 1fe6cc7 Aug 28, 2017
@nmaier nmaier deleted the mingw-connect branch August 28, 2017 16:19
vijayanandnandam pushed a commit to vijayanandnandam/aria2 that referenced this pull request Mar 3, 2018
winsock notifies connect() failures on exceptfds instead of writefds.
Fixes aria2GH-969
Fixes aria2GH-975
CrackerCat pushed a commit to CrackerCat/aria2 that referenced this pull request Jul 31, 2024
winsock notifies connect() failures on exceptfds instead of writefds.
Fixes aria2GH-969
Fixes aria2GH-975
CrackerCat pushed a commit to CrackerCat/aria2 that referenced this pull request Aug 1, 2024
winsock notifies connect() failures on exceptfds instead of writefds.
Fixes aria2GH-969
Fixes aria2GH-975
CrackerCat pushed a commit to CrackerCat/aria2 that referenced this pull request Aug 2, 2024
winsock notifies connect() failures on exceptfds instead of writefds.
Fixes aria2GH-969
Fixes aria2GH-975
CrackerCat pushed a commit to CrackerCat/aria2 that referenced this pull request Aug 3, 2024
winsock notifies connect() failures on exceptfds instead of writefds.
Fixes aria2GH-969
Fixes aria2GH-975
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.

3538
2 participants
0