title: Method to handle bad file descriptor error
body: <p><strong>Scenario:</strong><br/>
  Connection is established between client and server.The client side connections are closed and client is destroyed. At the server side some of the connections closed are detected but some are not.So there are socket descriptor which are like dangling pointers.Select on these returns Bad file descriptor error but it is not possible to find the invalid fd .</p>
  
  <p><strong>Question:</strong>
  In the above scenario, where the client connection does not exist how should I handle these <code>BAD FILE DESCRIPTORs</code> .Can I call <code>recv()</code> on these ?</p>