[BUG] last fix was overzealous and disabled server-close

we must not close on remote shutdown but on remote error only.
This commit is contained in:
Willy Tarreau 2010-01-03 00:19:31 +01:00
parent 082b01c541
commit 21c5e4d85b

View 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;
}