]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream: Don't reset sov value with HTX messages
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 31 Oct 2018 12:43:33 +0000 (13:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:10:08 +0000 (22:10 +0100)
src/stream.c

index ae8318d09181bea31b5ff8b40e051b2e7303a623..a92a309c7856efa9f3ceddc009cb90b94da5a913 100644 (file)
@@ -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