-
8000
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Conversation
winsock notifies connect() failures on exceptfds instead of writefds. Fixes GH-969
There was a problem hiding this 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__ |
There was a problem hiding this comment.
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__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// !__MINGW32__
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix it?
winsock notifies connect() failures on exceptfds instead of writefds. Fixes aria2GH-969 Fixes aria2GH-975
winsock notifies connect() failures on exceptfds instead of writefds. Fixes aria2GH-969 Fixes aria2GH-975
winsock notifies connect() failures on exceptfds instead of writefds. Fixes aria2GH-969 Fixes aria2GH-975
winsock notifies connect() failures on exceptfds instead of writefds. Fixes aria2GH-969 Fixes aria2GH-975
winsock notifies connect() failures on exceptfds instead of writefds. Fixes aria2GH-969 Fixes aria2GH-975
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.