Skip to content

zsock_select() timeout value implementation #36072

Answered by jukkar
bob2oneil asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, select() is using poll() atm. After looking the code, I think it is trivial to change the code to internally use higher precision in poll implementation and just convert to desired precision in select/poll when calling the internal poll implementation. Patches are welcome if you want to go this route.
We also support SO_RCVTIMEO that allows application to define the receive timeout in microsecond resolution.

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
9 replies
@jukkar
Comment options

@bob2oneil
Comment options

@jukkar
Comment options

@bob2oneil
Comment options

@jukkar
Comment options

Answer selected by bob2oneil
Comment options

You must be logged in to vote
2 replies
@jukkar
Comment options

@bob2oneil
Comment options

Comment options

You must be logged in to vote
1 reply
@bob2oneil
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants