]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: don't try to recv() before the connection is ready
authorWilly Tarreau <w@1wt.eu>
Mon, 3 Jun 2019 08:12:22 +0000 (10:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Jun 2019 08:17:12 +0000 (10:17 +0200)
commitd58f27feadbc71c947fa0810f49552a94c60dc9a
tree0252e964b71e2ef9a9bae993c38a3fe6e49bd167
parent694fcd0ee491d61f4374939dbc68d1d9f222f953
MINOR: mux-h1: don't try to recv() before the connection is ready

Just as we already do in h1_send(), if the connection is not yet ready,
do not proceed and instead subscribe. This avoids a needless recvfrom()
and subscription to polling for a case which will never work since the
request was not even sent.
src/mux_h1.c