netxduo icon indicating copy to clipboard operation
netxduo copied to clipboard

NetX BSD fails when select() is passed a timeout

Open barney4953 opened this issue 1 year ago • 0 comments
trafficstars

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 avatar Apr 04 '24 14:04 barney4953