]> git.ipfire.org Git - thirdparty/pdns.git/commit
Maintain a "current size of received body" counter. 17284/head
authorMiod Vallat <miod.vallat@powerdns.com>
Mon, 4 May 2026 09:46:09 +0000 (11:46 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Mon, 4 May 2026 09:46:09 +0000 (11:46 +0200)
commitedbcfd30481b60cbca5a44afeee51a0bc9e0ce18
tree3a9cf135f3ef1ecc5a6e07407cf5a70b2a9570ae
parent7caba0557b726e65fad02cec87e0c762cbab7a42
Maintain a "current size of received body" counter.

This allows us to get rid of synthesizing partial body contents as
std::string objects, only to check for their length being still within
allowed bounds.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
ext/yahttp/yahttp/reqresp.cpp
ext/yahttp/yahttp/reqresp.hpp