From: Christopher Faulet Date: Wed, 31 Oct 2018 12:43:33 +0000 (+0100) Subject: MINOR: stream: Don't reset sov value with HTX messages X-Git-Tag: v1.9-dev7~41 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=ed28da534a36e7a9889888f2151310e663a95716;p=haproxy.git MINOR: stream: Don't reset sov value with HTX messages --- diff --git a/src/stream.c b/src/stream.c index ae8318d09..a92a309c7 100644 --- a/src/stream.c +++ b/src/stream.c @@ -2192,7 +2192,7 @@ redo: * we simply reset msg->sov so that HTTP rewinding points to the * headers. */ - if (s->txn) + if (IS_HTX_STRM(s) && s->txn) s->txn->req.sov = s->txn->req.eoh + s->txn->req.eol - co_data(req); } @@ -2353,7 +2353,7 @@ redo: * we simply reset msg->sov so that HTTP rewinding points to the * headers. */ - if (s->txn) + if (IS_HTX_STRM(s) && s->txn) s->txn->rsp.sov = s->txn->rsp.eoh + s->txn->rsp.eol - co_data(res); /* if we have no analyser anymore in any direction and have a