if (cn->rpollindex != -1) { free_pollindex(cn->rpollindex); cn->rpollindex = -1; }
void close_connection(struct connection *cn){	if (cn->nread || cn->nwritten || cn->logged == 0) {		++stats.nrequests;		log_request(cn->r);	}	--stats.nconnections;	close(cn->fd);	if (cn->rfd != -1) {		close(cn->rfd);		cn->rfd = -1;	}	set_connection_state(cn, HC_FREE);}