]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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>
Thu, 6 May 2021 07:19:05 +0000 (09:19 +0200)
commitd8219b31e7cfe0dec64c33e1186e5f33cf87191a
tree9a169ab748f710524421a7cf8f223cca37085ea1
parente0dec4b7b258101f6d5faa15234103a45c16f0f8
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.
include/haproxy/connection-t.h
src/stream_interface.c