]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] last fix was overzealous and disabled server-close
authorWilly Tarreau <w@1wt.eu>
Sat, 2 Jan 2010 23:19:31 +0000 (00:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 2 Jan 2010 23:19:31 +0000 (00:19 +0100)
we must not close on remote shutdown but on remote error only.

src/proto_http.c

index 33a45e89d873cc200d535bf594e55f6376923953..6e2f4c614f9ba770e2c448e1a92ff67c53904cb5 100644 (file)
@@ -3244,7 +3244,7 @@ int http_request_forward_body(struct session *s, struct buffer *req, int an_bit)
        struct http_txn *txn = &s->txn;
        struct http_msg *msg = &s->txn.req;
 
-       if (req->flags & (BF_SHUTW|BF_WRITE_ERROR|BF_WRITE_TIMEOUT)) {
+       if (req->flags & (BF_WRITE_ERROR|BF_WRITE_TIMEOUT)) {
                req->analysers &= ~an_bit;
                return 1;
        }
@@ -4352,7 +4352,7 @@ int http_response_forward_body(struct session *s, struct buffer *res, int an_bit
        struct http_txn *txn = &s->txn;
        struct http_msg *msg = &s->txn.rsp;
 
-       if (res->flags & (BF_SHUTW|BF_WRITE_ERROR|BF_WRITE_TIMEOUT)) {
+       if (res->flags & (BF_WRITE_ERROR|BF_WRITE_TIMEOUT)) {
                res->analysers &= ~an_bit;
                return 1;
        }