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

NetX BSD fails when select() is passed a timeout #268

Open
barney4953 opened this issue Apr 4, 2024 · 0 comments
Open

NetX BSD fails when select() is passed a timeout #268

barney4953 opened this issue Apr 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@barney4953
Copy link

barney4953 commented Apr 4, 2024

I'm using the BSD wrapper described in:

https://learn.microsoft.com/en-us/azure/rtos/netx/appendix-d

The following call works:

status = select(fdmax+1, &readfds, 0, 0, 0);

However, the following call does not:

timeout.tv_sec = 1;
timeout.tv_usec = 0;
status = select(fdmax+1, &readfds, 0, 0, &timeout);

When the timeout is used, it appears recv() always returns an errno of EAGAIN (11).

Any suggestions?

@barney4953 barney4953 added the bug Something isn't working label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant