Right now we count the incoming connection only once everything has
been allocated. Since we're planning on considering early ACL rules,
we need to count the connection earlier.
s->data_source = DATA_SRC_NONE;
s->uniq_id = totalconn;
+ totalconn++;
proxy_inc_fe_ctr(l, p); /* note: cum_beconn will be increased once assigned */
txn = &s->txn;
}
actconn++;
- totalconn++;
// fprintf(stderr, "accepting from %p => %d conn, %d total, task=%p\n", p, actconn, totalconn, t);
} /* end of while (p->feconn < p->maxconn) */
s->data_state = DATA_ST_INIT;
s->data_source = DATA_SRC_NONE;
s->uniq_id = totalconn;
+ totalconn++;
if ((s->req = pool_alloc2(pool2_buffer)) == NULL)
goto out_free_task;
l->state = LI_FULL;
}
actconn++;
- totalconn++;
}
return 0;