From 05cb29bcd00e471cdd58f8663d0d5d6ff538d7dc Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 14 Dec 2008 11:44:04 +0100 Subject: [PATCH] [MINOR] transfer errors were not reported anymore in data phase --- src/session.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/session.c b/src/session.c index 5046e0426..6bad79a44 100644 --- a/src/session.c +++ b/src/session.c @@ -572,6 +572,12 @@ void process_session(struct task *t, int *next) s->si[0].shutr(&s->si[0]); s->si[0].shutw(&s->si[0]); stream_int_report_error(&s->si[0]); + if (!(s->req->analysers) && !(s->rep->analysers)) { + if (!(s->flags & SN_ERR_MASK)) + s->flags |= SN_ERR_CLICL; + if (!(s->flags & SN_FINST_MASK)) + s->flags |= SN_FINST_D; + } } } @@ -583,6 +589,12 @@ void process_session(struct task *t, int *next) s->be->failed_resp++; if (s->srv) s->srv->failed_resp++; + if (!(s->req->analysers) && !(s->rep->analysers)) { + if (!(s->flags & SN_ERR_MASK)) + s->flags |= SN_ERR_SRVCL; + if (!(s->flags & SN_FINST_MASK)) + s->flags |= SN_FINST_D; + } } /* note: maybe we should process connection errors here ? */ }