From d08f82ebe2d88698941641a92066570fd8c788b2 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 25 Jan 2010 22:46:30 +0100 Subject: [PATCH] [MINOR] http: remove a copy-paste typo in transaction cleaning 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/src/proto_http.c b/src/proto_http.c index b3608d4e4..f395a9e44 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -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; }