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

Fix select() return code for fd >= 1024 #1757

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

jfsimoneau
Copy link
Contributor

I noticed all callers look for errors in negative numbers, but these code paths returned 1 instead of -1.

@yhirose yhirose merged commit af2928d into yhirose:master Jan 15, 2024
4 checks passed
@yhirose
Copy link
Owner

yhirose commented Jan 15, 2024

@jfsimoneau thanks for catching the bug!

@jfsimoneau jfsimoneau deleted the fix-select-corruption branch January 15, 2024 14:43
zhaokeli pushed a commit to zhaokeli/cpp-httplib that referenced this pull request Oct 10, 2024
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.

2 participants