title: Blocking recv call hangs if server is down
body: <p>Another socket problem.</p>
  
  <p>In my client code, I am sending some packet and expectign some response from the server side:  </p>
  
  <hr>
  
  <p>send()   </p>
  
  <h2>recv()  &lt;-- it is blocking</h2>
  
  <p>Immediately after send(), the server crashes and rebooted itself. In the meantime the recv() is waiting. But even after the server is up, the receive call is hanging. I have added SIGPIPE signal handling but its still not able to recognize that the socket is broken.</p>
  
  <p>When i cancel the operation, i got the error from recv() that interrupt has been issued.  </p>
  
  <p>Anyone could help me how to rectify this error?</p>
  
  <p>This is in a shared library running on Solaris machine.</p>