I've noticed that sometimes select returns with Connection Timed out set on errno, but I dont know why it would do this, how would it know? And how are you suppose to deal with this? (Im guessing it means that one of the connections timed out, perhaps an ACK wasnt heard back from at an appropriate time). Id imagine the only legit case of this would be if a server socket is in there and you ran a nonblocking connect before? In which case running a connect on this socket again would return to you whether it was connected or not, and that would be the way to handle that.... but is there a better way?
Thanks in advance.