From: Willy Tarreau Date: Thu, 6 Dec 2018 14:25:58 +0000 (+0100) Subject: BUG/MEDIUM: stream-int: don't attempt to receive if the connection is not established X-Git-Tag: v1.9-dev10~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adc7f3edd26f2cc508bb9ceeb140bf6e54b5d79c;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: stream-int: don't attempt to receive if the connection is not established If we try to receive before the connection is established, we lose the send event and are not woken up anymore once the connection is established. This was diagnosed by Olivier. No backport is needed. --- diff --git a/include/proto/stream_interface.h b/include/proto/stream_interface.h index e790c71700..2874664f1d 100644 --- a/include/proto/stream_interface.h +++ b/include/proto/stream_interface.h @@ -436,7 +436,7 @@ static inline void si_chk_rcv(struct stream_interface *si) if (si_rx_blocked(si) || !si_rx_endp_ready(si)) return; - if (si->state > SI_ST_EST) + if (si->state != SI_ST_EST) return; si->flags |= SI_FL_RX_WAIT_EP;