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

net: lib: sockets: Fix zsock_select #34653

Merged
merged 1 commit into from
Apr 28, 2021
Merged

net: lib: sockets: Fix zsock_select #34653

merged 1 commit into from
Apr 28, 2021

Conversation

chyu313
Copy link
Contributor

@chyu313 chyu313 commented Apr 28, 2021

zsock_select() cannot poll file descriptors with number >= 32.

When a whole word in FD_SET was skipped due to being empty,
corresponding fd number was not updated, leading to wrong
fd's being passed to poll().

Fixes #34563

Signed-off-by: Chih Hung Yu [email protected]

zsock_select() cannot poll file descriptors with number >= 32.

When a whole word in FD_SET was skipped due to being empty,
corresponding fd number was not updated, leading to wrong
fd's being passed to poll().

Fixes #34563

Signed-off-by: Chih Hung Yu <[email protected]>
@jukkar jukkar merged commit 5cebdf5 into zephyrproject-rtos:master Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

net: lib: sockets: Unable to select() file descriptors with number >= 32
5 participants