CLEANUP: htx: remove comments about "must be < 256 MB"
authorWilly Tarreau <w@1wt.eu>
Thu, 26 Aug 2021 14:07:22 +0000 (16:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Sep 2021 15:16:43 +0000 (17:16 +0200)
commit9ebc9cceb67c978d6ffa5e5065de4ef9482b9e1a
tree129204ab97245e944ece9f8ff43f141d7d020e6c
parent638369923793499beae7d2aaea0c6b53a8eed275
CLEANUP: htx: remove comments about "must be < 256 MB"

Since commit "BUG/MINOR: config: reject configs using HTTP with bufsize
>= 256 MB" we are now sure that it's not possible anymore to have an HTX
block of a size 256 MB or more, even after concatenation thanks to the
tests for len >= htx_free_data_space(). Let's remove these now obsolete
comments.

A BUG_ON() was added in htx_add_blk() to track any such exception if
the conditions would change later, to complete the one that is performed
on the start address that must remain within the buffer.

(cherry picked from commit 3d5f19e04d88e7c8f71cba4ea12e383c91de89f6)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 86cb2cd3c68a0f3072a326def89449e10760423d)
[wt: no change in htx.h, ctx updates in htx.c]
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/htx.c