From: Willy Tarreau Date: Sun, 18 Mar 2007 15:28:03 +0000 (+0100) Subject: [MINOR] fix accounting for response bytes X-Git-Tag: v1.3.8~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b49871738eb19b75d33d2fedab2e30927f1a70a0;p=thirdparty%2Fhaproxy.git [MINOR] fix accounting for response bytes A remaining reference to rep->h was replaced. --- diff --git a/src/proto_http.c b/src/proto_http.c index 651ceb683a..ea9ebc8513 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); }