From: Thierry FOURNIER Date: Wed, 4 Nov 2015 09:52:59 +0000 (+0100) Subject: BUG/MEDIUM: lua: clean output buffer X-Git-Tag: v1.7-dev1~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3308fd8c1851f06b1374da0f3aa005245a88dd3;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: lua: clean output buffer When the txn.done() fiunction is called, the ouput buffer is cleaned, but the associated relative pointer on the HTTP requests elements is not reseted. This patch remove this cleanup, because the output buffer may contain data to forward. --- diff --git a/src/hlua.c b/src/hlua.c index 8fc85a650d..5ee233727e 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -4819,10 +4819,6 @@ __LJMP static int hlua_txn_done(lua_State *L) htxn->s->txn->req.msg_state = HTTP_MSG_CLOSED; htxn->s->txn->rsp.msg_state = HTTP_MSG_DONE; - /* Trim any possible response */ - oc->buf->i = 0; - htxn->s->txn->rsp.next = htxn->s->txn->rsp.sov = 0; - /* Note that if we want to support keep-alive, we need * to bypass the close/shutr_now calls below, but that * may only be done if the HTTP request was already