From 20db6bab86cf0c8cafc26f8e6663b3af1f3cbfd9 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 9 Dec 2014 19:47:54 +0100 Subject: MEDIUM: stream-int: support splicing from applets If we want to splice from applets, we must check the pipe before clearing SI_FL_WAIT_ROOM. --- src/stream_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream_interface.c b/src/stream_interface.c index 5d68183..b261909 100644 --- a/src/stream_interface.c +++ b/src/stream_interface.c @@ -183,7 +183,7 @@ static void stream_int_update_embedded(struct stream_interface *si) (si->ib->cons->flags & SI_FL_WAIT_DATA)) { si_chk_snd(si->ib->cons); /* check if the consumer has freed some space */ - if (!channel_full(si->ib)) + if (!channel_full(si->ib) && !si->ib->pipe) si->flags &= ~SI_FL_WAIT_ROOM; } -- 1.7.12.1