From: Willy Tarreau Date: Sun, 3 Jan 2010 21:13:35 +0000 (+0100) Subject: [CLEANUP] http: remove a remaining impossible condition X-Git-Tag: v1.4-dev5~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bddaa4a2f7b95bf9b25b31bb386d01d7f31824fb;p=thirdparty%2Fhaproxy.git [CLEANUP] http: remove a remaining impossible condition This test was there before we had the CLOSING and CLOSED states. It makes no sense now. --- diff --git a/src/proto_http.c b/src/proto_http.c index 66024a7155..42428ba944 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -3347,17 +3347,6 @@ int http_request_forward_body(struct session *s, struct buffer *req, int an_bit) if (req->to_forward) return 0; - /* we're sending the last bits of request, the server's response - * is expected in a short time. Most often the first read is enough - * to bring all the headers, so we're preparing the response buffer - * to read the response now. Note that we should probably move that - * to a more appropriate place. - */ - if (txn->rsp.msg_state == HTTP_MSG_RPBEFORE) { - s->rep->flags &= ~BF_DONT_READ; - s->rep->flags |= BF_READ_DONTWAIT; - } - /* nothing left to forward */ if (txn->flags & TX_REQ_TE_CHNK) msg->msg_state = HTTP_MSG_DATA_CRLF;