]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: do not try to receive on backend before sending a request
authorWilly Tarreau <w@1wt.eu>
Fri, 31 Jul 2020 07:16:23 +0000 (09:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 31 Jul 2020 07:30:12 +0000 (09:30 +0200)
commitf5ea3a8c5818040420e27fd70d5bb8e867acdb4b
tree419eaf0617d18b7b63b1346b20879d8b016872e0
parent2febb846a46a222f90d6cef47494677460d564df
MINOR: mux-h1: do not try to receive on backend before sending a request

There's no point trying to perform an recv() on a back connection if we
have a stream before having sent a request, as it's expected to fail.
It's likely that this may avoid some spurious subscribe() calls in some
keep-alive cases (the close case was already addressed at the connection
level by "MINOR: connection: avoid a useless recvfrom() on outgoing
connections").
src/mux_h1.c