BUG/MEDIUM: H2: Make sure htx is set even on empty frames.

When transfering data, make sure htx is set even on empty frames, or we
will never add a HTX_BLK_EOM block.
This commit is contained in:
Olivier Houchard 2018-12-19 15:53:53 +01:00 committed by Willy Tarreau
parent d2e88c715d
commit 2f30883793

View file

@ -3260,6 +3260,8 @@ static int h2_frt_transfer_data(struct h2s *h2s)
try_again:
flen = h2c->dfl - h2c->dpl;
if (h2c->proxy->options2 & PR_O2_USE_HTX)
htx = htx_from_buf(csbuf);
if (!flen)
goto end_transfer;
@ -3270,7 +3272,6 @@ try_again:
}
if (h2c->proxy->options2 & PR_O2_USE_HTX) {
htx = htx_from_buf(csbuf);
block1 = htx_free_data_space(htx);
if (!block1) {
h2c->flags |= H2_CF_DEM_SFULL;