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