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.
// works also after bind operation for WINDOWS
DWORD timeout = timeout_in_seconds * 1000; setsockopt(socket, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout, sizeof timeout);