/* Instead, if it is readable, run Curl_connalive() to peek at the socket and distinguish between closed and data.  */
static bool rtsp_connisdead(struct connectdata *check)
/* Instead, if it is readable, run Curl_connalive() to peek at the socket and distinguish between closed and data.  */
static bool rtsp_connisdead(struct connectdata *check)
{
  int sval;
  bool ret_val = TRUE;
  sval = SOCKET_READABLE(check->sock[FIRSTSOCKET], 0);
  if(sval == 0) {
    ret_val = FALSE;
  }
  else if(sval & CURL_CSELECT_ERR) {
    ret_val = TRUE;
  }
  else if(sval & CURL_CSELECT_IN) {
    ret_val = !Curl_connalive(check);
  }
  return ret_val;
}