]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: don't try (and fail) to send non-existing data in the mux
authorWilly Tarreau <w@1wt.eu>
Tue, 7 Nov 2017 10:03:56 +0000 (11:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Nov 2017 10:03:56 +0000 (11:03 +0100)
commit319994a2e9e47985a8c1e9f589c579fc685b89cc
tree7b644aaa4a81c2e7ef1edbcb9b9fd7205afefe70
parent3eabe9b174a245a8591f0fafc7f565914ae86f9a
BUG/MEDIUM: h2: don't try (and fail) to send non-existing data in the mux

The call to xprt->snd_buf() was not conditionned on the presence of
data in the buffer, resulting in snd_buf() returning 0 and never
disabling the polling. It was revealed by the previous bug on error
processing but must properly be handled.
src/mux_h2.c