src/session.c
static void sess_set_term_flags(struct session *s)
{
	if (!(s->flags & SN_FINST_MASK)) {
		if (s->si[1].state < SI_ST_REQ) {

			s->fe->fe_counters.failed_req++;
			if (s->listener->counters)
				s->listener->counters->failed_req++;

			s->flags |= SN_FINST_R;
		}
		else if (s->si[1].state == SI_ST_QUE)
			s->flags |= SN_FINST_Q;
		else if (s->si[1].state < SI_ST_EST)
			s->flags |= SN_FINST_C;
		else if (s->si[1].state == SI_ST_EST || s->si[1].prev_state == SI_ST_EST)
			s->flags |= SN_FINST_D;
		else
			s->flags |= SN_FINST_L;
	}
}
/* Set correct session termination flags in case no analyser has done it. It
 * also counts a failed request if the server state has not reached the request
 * stage.
 */
Set correct session termination flags in case no analyser has done it. It
also counts a failed request if the server state has not reached the request
stage.
Set correct session termination flags in case no analyser has done it . It also counts a failed request if the server state has not reached the request stage .
static void sess_set_term_flags(struct session *s)
{
	if (!(s->flags & SN_FINST_MASK)) {
		if (s->si[1].state < SI_ST_REQ) {
			s->fe->fe_counters.failed_req++;
			if (s->listener->counters)
				s->listener->counters->failed_req++;
			s->flags |= SN_FINST_R;
		}
		else if (s->si[1].state == SI_ST_QUE)
			s->flags |= SN_FINST_Q;
		else if (s->si[1].state < SI_ST_EST)
			s->flags |= SN_FINST_C;
		else if (s->si[1].state == SI_ST_EST || s->si[1].prev_state == SI_ST_EST)
			s->flags |= SN_FINST_D;
		else
			s->flags |= SN_FINST_L;
	}
}
static void sess_set_term_flags ( struct session * s ) { if ( ! ( s -> flags & SN_FINST_MASK ) ) { if ( s -> si [ 1 ] . state < SI_ST_REQ ) { s -> fe -> fe_counters . failed_req ++ ; if ( s -> listener -> counters ) s -> listener -> counters -> failed_req ++ ; s -> flags |= SN_FINST_R ; } else if ( s -> si [ 1 ] . state == SI_ST_QUE ) s -> flags |= SN_FINST_Q ; else if ( s -> si [ 1 ] . state < SI_ST_EST ) s -> flags |= SN_FINST_C ; else if ( s -> si [ 1 ] . state == SI_ST_EST || s -> si [ 1 ] . prev_state == SI_ST_EST ) s -> flags |= SN_FINST_D ; else s -> flags |= SN_FINST_L ; } }
Set correct session termination flags in case no analyser has done it.
Set correct session termination flags in case no analyser has done it .