Commit 2e66e0b9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make it the transports job to increment stats->client_req

parent 3f0c7ade
......@@ -78,8 +78,6 @@ cnt_transport(struct worker *wrk, struct req *req)
http_Unset(req->http, H_Expect);
}
wrk->stats->client_req++;
AZ(req->err_code);
req->doclose = http_DoConnection(req->http);
......
......@@ -441,6 +441,7 @@ HTTP1_Session(struct worker *wrk, struct req *req)
} else if (st == H1PROC) {
req->task.func = http1_req;
req->task.priv = req;
wrk->stats->client_req++;
if (CNT_Request(wrk, req) == REQ_FSM_DISEMBARK)
return;
req->task.func = NULL;
......
......@@ -536,6 +536,7 @@ h2_do_req(struct worker *wrk, void *priv)
THR_SetRequest(req);
req->http->conds = 1;
wrk->stats->client_req++;
if (CNT_Request(wrk, req) != REQ_FSM_DISEMBARK) {
AZ(req->ws->r);
h2 = r2->h2sess;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment