title: recv() windows socket takes infinite time - how to timeout?
body: <p>I use file descriptors to find the readable sockets and go on to read. For some reasons, a socket that has no data on the wire, goes on to read and never returns. Is there a way I can come out of the receive after a timeout?</p>
  
  <p>I am using winsock library..</p>