chiark / gitweb /
new max_batch_down protocol, define
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 10:35:08 +0000 (11:35 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 10:35:08 +0000 (11:35 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
PROTOCOL
README.config
src/bin/client.rs

index 4c4472b0a465634f21f8850eea193c090fab0876..b39253be7f99af8e4f164f22fa190aaea0c23a4c 100644 (file)
--- 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)
 
 
index 1a716bb1461ce13189339a81e4999f25dce48a93..a2b9d7d31d70b79c77b116c3c9b27cf2aa771db9 100644 (file)
@@ -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
index 861053be7b44bb9eeb6a713b10bbbed9696ef9fe..70fe9b96af78e000903f16e3108435121ecddc55 100644 (file)
@@ -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!(