I think you mis-understood my question, I should clarify.Â
In your example, the loop would run for exactly 1 seconds . and always 1 second, is my understanding right? ÂBut the old behavior in the program that uses select() is: however wait for at most 1 seconds. In a busy server however there should always be some io work to do , thus it returns immediately most of the time.Â
The idea of the old program is that if there is no client around, server could just spend sometime waiting, up to 1 sec, I kinda think this is a useless behavior, so maybe I should instead spend some effort figuring out whether i should discard the this behavior instead.
Thanks.