int rv;
static void close_connection(struct connection *cn){	int rv;	if (cn->nread || cn->nwritten || cn->logged == 0)		log_request(cn->r);	--nconnections;	rv = close(cn->fd);	if (debug)		log_d("close_connection: close(%d) = %d", cn->fd, rv);	if (cn->rfd != -1) {		rv = close(cn->rfd);		if (debug)			log_d("close_connection: close(%d) = %d (rfd)", cn->rfd, rv);		cn->rfd = -1;	}	cn->state = HC_FREE;}