pollfds[cn->pollindex].events = POLLIN;
int reinit_connection(struct connection *cn){	char *s;	++stats.nrequests;	log_request(cn->r);	cn->logged = 1;	if (cn->rfd != -1) {		close(cn->rfd);		cn->rfd = -1;	}	init_connection(cn);	set_connection_state(cn, HC_WAITING);	s = cn->header_input.middle;	if (s == cn->header_input.end) {		cn->header_input.start = cn->header_input.middle = cn->header_input.end = cn->header_input.floor;		return 0;	}	cn->header_input.start = s;	return scan_request(cn);}