From b49871738eb19b75d33d2fedab2e30927f1a70a0 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 18 Mar 2007 16:28:03 +0100 Subject: [PATCH] [MINOR] fix accounting for response bytes A remaining reference to rep->h was replaced. --- src/proto_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_http.c b/src/proto_http.c index 651ceb683..ea9ebc851 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -2740,7 +2740,7 @@ int process_srv(struct session *t) bytes from the server, then this is the right moment. */ if (t->fe->to_log && !(t->logs.logwait & LW_BYTES)) { t->logs.t_close = t->logs.t_data; /* to get a valid end date */ - t->logs.bytes_in = rep->h - rep->data; + t->logs.bytes_in = txn->rsp.eoh; sess_log(t); }