You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either values from 0 to 999ns should be automatically converted to 1us or the documentation should be updated to mention this unexpected behavior. Since there is already a blocking method next() I prefer the former.
The text was updated successfully, but these errors were encountered:
The following code is expected to poll in a tight loop, instead it waits indefinitely for every packet (confirmed with strace(1)):
I suspect this is because socket option SO_RCVTIMEO interprets zero timeout as infinite. From socket(7) man:
The problem can be solved by specifying timeout as the smallest non-zero value (1000ns since
timeval.tv_usec
is in microseconds):Either values from 0 to 999ns should be automatically converted to 1us or the documentation should be updated to mention this unexpected behavior. Since there is already a blocking method next() I prefer the former.
The text was updated successfully, but these errors were encountered: