Linux: is here a read or recv from socket with timeout?
- by osgx
Hello
How can I try to read data from socket with timeout?
I know, select, pselect, poll, has a timeout field, but using of them disables "tcp fast-path" in tcp reno stack.
The only idea I have is to use recv(fd, ..., MSG_DONTWAIT) in a loop