/* This function should return TRUE if the socket is to be assumed to be dead. Most commonly this happens when the server has closed the connection due to inactivity.  */
static bool SocketIsDead(curl_socket_t sock)
/* This function should return TRUE if the socket is to be assumed to be dead. Most commonly this happens when the server has closed the connection due to inactivity.  */
static bool SocketIsDead(curl_socket_t sock)
{
  int sval;
  bool ret_val = TRUE;
  sval = SOCKET_READABLE(sock, 0);
  if(sval == 0)
    ret_val = FALSE;
  return ret_val;
}