title: Socet recv hangs when server crashes
body: <p>I am working on client server program using sockets on Windows and MAC and currently facing a issue where client call recv blocks forever when server program crashes/killed using task manager. I send some data to server and asynchronously wait for reply using recv. This reply will come from server after some time which can not be determined. 
  I was expecting an error from recv when other ends of socket dies. Not sure how to handle this situation. </p>
  
  <p>Suggestions ?</p>
  
  <p>Thanks,</p>