Linux: is here a read or recv from socket with timeout?
Posted
by osgx
on Stack Overflow
See other posts from Stack Overflow
or by osgx
Published on 2010-05-20T16:55:27Z
Indexed on
2010/05/30
15:12 UTC
Read the original article
Hit count: 219
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
© Stack Overflow or respective owner