BUG/MEDIUM: stream: Don't request a server connection if a shutw was scheduled
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2019 13:03:19 +0000 (15:03 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2019 13:53:23 +0000 (15:53 +0200)
commitc54e4b053d46a2ee80da261bc48858165cbe2aaf
tree567797cb5e91c3c1930b8c14ddf7d4ca3e404f99
parente84289e5854aa3b00cd19032387f435ca6748491
BUG/MEDIUM: stream: Don't request a server connection if a shutw was scheduled

If a shutdown for writes was performed on the client side (CF_SHUTW is set on
the request channel) while the server connection is still unestablished (the
stream-int is in the state SI_ST_INI), then it is aborted. It must also be
aborted when the shudown for write is pending (only CF_SHUTW_NOW is
set). Otherwise, some errors on the request channel can be ignored, leaving the
stream in an undefined state.

This patch must be backported to 1.9. It may probably be backported to all
suported versions, but it is unclear if the bug is visbile for older versions
than 1.9. So it is probably safer to wait bug reports on these versions to
backport this patch.
src/stream.c