]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] http: remove a copy-paste typo in transaction cleaning
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Jan 2010 21:46:30 +0000 (22:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Jan 2010 21:46:30 +0000 (22:46 +0100)
For deciding to set the BF_EXPECT_MORE, we reused the same code as in
http_wait_for_request(), but here we must ignore buf->lr which is not
yet set and useless. This might only have caused random sub-optimal
behaviours.

src/proto_http.c

index b3608d4e4cee58014a44be7751f3a73b9d8816ad..f395a9e44c82997f82e141d6001ff99089110a45 100644 (file)
@@ -3578,7 +3578,6 @@ void http_end_txn_clean_session(struct session *s)
        if (s->req->l > s->req->send_max) {
                if (s->rep->send_max &&
                    !(s->rep->flags & BF_FULL) &&
-                   s->rep->lr <= s->rep->r &&
                    s->rep->r <= s->rep->data + s->rep->size - global.tune.maxrewrite)
                        s->rep->flags |= BF_EXPECT_MORE;
        }