mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-19 12:10:46 +00:00
[BUG] do not forward close from cons to prod with analysers
We must not forward a close from consumer to producer as long as an analyser is present.
This commit is contained in:
parent
3bc13774e1
commit
3dbc69494a
@ -759,7 +759,8 @@ resync_stream_interface:
|
|||||||
s->req->cons->shutw(s->req->cons);
|
s->req->cons->shutw(s->req->cons);
|
||||||
|
|
||||||
/* shutdown(write) done on server side, we must stop the client too */
|
/* shutdown(write) done on server side, we must stop the client too */
|
||||||
if (unlikely((s->req->flags & (BF_SHUTW|BF_SHUTR|BF_SHUTR_NOW)) == BF_SHUTW))
|
if (unlikely((s->req->flags & (BF_SHUTW|BF_SHUTR|BF_SHUTR_NOW)) == BF_SHUTW &&
|
||||||
|
!s->req->analysers))
|
||||||
buffer_shutr_now(s->req);
|
buffer_shutr_now(s->req);
|
||||||
|
|
||||||
/* shutdown(read) pending */
|
/* shutdown(read) pending */
|
||||||
@ -857,7 +858,8 @@ resync_stream_interface:
|
|||||||
s->rep->cons->shutw(s->rep->cons);
|
s->rep->cons->shutw(s->rep->cons);
|
||||||
|
|
||||||
/* shutdown(write) done on the client side, we must stop the server too */
|
/* shutdown(write) done on the client side, we must stop the server too */
|
||||||
if (unlikely((s->rep->flags & (BF_SHUTW|BF_SHUTR|BF_SHUTR_NOW)) == BF_SHUTW))
|
if (unlikely((s->rep->flags & (BF_SHUTW|BF_SHUTR|BF_SHUTR_NOW)) == BF_SHUTW) &&
|
||||||
|
!s->rep->analysers)
|
||||||
buffer_shutr_now(s->rep);
|
buffer_shutr_now(s->rep);
|
||||||
|
|
||||||
/* shutdown(read) pending */
|
/* shutdown(read) pending */
|
||||||
|
Loading…
Reference in New Issue
Block a user