MINOR: conn-stream: Force mux to wait for read events if abortonclose is set
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 8 Apr 2021 16:13:25 +0000 (18:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 May 2021 08:37:22 +0000 (10:37 +0200)
commit258a0857b0b43e4bd738170dfb631e61f58ba345
treee10f3a32b6350a7969de43b61c1ec8b3486a8cca
parentae113f2d6b80262ffa1063bcf1d58e8e4b88405e
MINOR: conn-stream: Force mux to wait for read events if abortonclose is set

When the abortonclose option is enabled, to be sure to be immediately
notified when a shutdown is received from the client, the frontend
conn-stream must be sure the mux will wait for read events. To do so, the
CO_RFL_KEEP_RECV flag is set when mux->rcv_buf() is called. This new flag
instructs the mux to wait for read events, regardless its internal state.

This patch is required to fix abortonclose option for H1 client connections.

(cherry picked from commit d8219b31e7cfe0dec64c33e1186e5f33cf87191a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/connection-t.h
src/stream_interface.c