[Jprogramming] sdselect timeout vs documentation
Michal Wallace
michal.wallace at gmail.com
Thu Nov 18 00:39:56 UTC 2021
I noticed something odd while working with net/websocket today.
It seems sdselect takes a timeout as its fourth parameter, and the wiki
seems to indicate that this is meant to be the timeout for the entire
sdselect call.
However, in practice, the timeout is spent for each of the other three
parameters, so basically if you pass in a 5 second timeout, j may block for
15 seconds.
Is this a bug in the code or the documentation?
I was recording while I tracked this down so if you want to see exactly
what I'm talking about, go here:
https://youtu.be/XVTyRjrlWto?t=13221
More information about the Programming
mailing list