From 49863cc4f42bf241ae623224bb69a9d5090e805a Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Mon, 5 Jan 2026 18:16:57 +0000 Subject: [PATCH] net: Keep track of size of keep-alive records This adds the relevant information on a request client so that the http_loader can sum it up and check whether a keep-alive request is allowed to be sent. Signed-off-by: Tim van der Lippe --- beacon/resources/beacon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon/resources/beacon.py b/beacon/resources/beacon.py index d81bfb1ac68084..cab09392b07544 100644 --- a/beacon/resources/beacon.py +++ b/beacon/resources/beacon.py @@ -72,7 +72,7 @@ def main(request, response): payload = request.body payload_parts = list(filter(None, payload.split(b":"))) - if len(payload_parts) > 0: + if len(payload_parts) > 1: payload_size = int(payload_parts[0]) # Confirm the payload size sent matches with the number of