From 20361195627b88cf85b8f9a34249ff415f79369e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 4 Aug 2021 11:35:08 +0100 Subject: [PATCH] new max_batch_down protocol, define Signed-off-by: Ian Jackson --- PROTOCOL | 1 + README.config | 6 +++++- src/bin/client.rs | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/PROTOCOL b/PROTOCOL index 4c4472b..b39253b 100644 --- a/PROTOCOL +++ b/PROTOCOL @@ -22,6 +22,7 @@ Client form parameters (multipart/form-data): token target_requests_outstanding http_timeout + max_batch_down d data (SLIP format, with SLIP_ESC and `-' swapped) diff --git a/README.config b/README.config index 1a716bb..a2b9d7d 100644 --- a/README.config +++ b/README.config @@ -89,7 +89,11 @@ Capped settings: those from the other sections (including COMMON). max_batch_down - Size limit for response payloads (used by server only) + Size limit for response payloads. + On client, incoming response bodies are limited to this plus + a fixed constant metadata overhead of 10000 bytes. + Server uses minim of client and server value (old servers + just uses server's value). [65536 bytes; LIMIT: 262144 bytes] max_queue_time diff --git a/src/bin/client.rs b/src/bin/client.rs index 861053b..70fe9b9 100644 --- a/src/bin/client.rs +++ b/src/bin/client.rs @@ -61,11 +61,13 @@ fn submit_request<'r, 'c:'r, C:HCC>( {} {} {} + {} {}"#), &c.ic.link.client, token, c.ic.target_requests_outstanding, show_timeout, + c.ic.max_batch_down, ); let prefix2 = format!(into_crlfs!( -- 2.30.2