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