]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: Don't attempt to recv from h2_process_demux if we subscribed.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 5 Apr 2019 13:34:34 +0000 (15:34 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 5 Apr 2019 14:03:54 +0000 (16:03 +0200)
commit3ca18bf0bd45a86f35b9367fde301fa5d9e48731
treec11f2473b52d21ec9383f1eef4a43abcea5e3139
parent9ef2ad7844e577b505019695c59284f4a439fc33
BUG/MEDIUM: h2: Don't attempt to recv from h2_process_demux if we subscribed.

Modify h2c_restart_reading() to add a new parameter, to let it know if it
should consider if the buffer isn't empty when retrying to read or not, and
call h2c_restart_reading() using 0 as a parameter from h2_process_demux().
If we're leaving h2_process_demux() with a non-empty buffer, it means the
frame is incomplete, and we're waiting for more data, and if we already
subscribed, we'll be waken when more data are available.
Failing to do so means we'll be waken up in a loop until more data are
available.

This should be backported to 1.9.
src/mux_h2.c