We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 826ba23 commit 7c3d8bfCopy full SHA for 7c3d8bf
lightning-block-sync/src/http.rs
@@ -24,8 +24,9 @@ const TCP_STREAM_TIMEOUT: Duration = Duration::from_secs(5);
24
/// Maximum HTTP message header size in bytes.
25
const MAX_HTTP_MESSAGE_HEADER_SIZE: usize = 8192;
26
27
-/// Maximum HTTP message body size in bytes. Enough for a hex-encoded block in JSON format.
28
-const MAX_HTTP_MESSAGE_BODY_SIZE: usize = 2 * 4_000_000 + 64;
+/// Maximum HTTP message body size in bytes. Enough for a hex-encoded block in JSON format and any
+/// overhead for HTTP chunked transfer encoding.
29
+const MAX_HTTP_MESSAGE_BODY_SIZE: usize = 2 * 4_000_000 + 32_000;
30
31
/// Endpoint for interacting with an HTTP-based API.
32
#[derive(Debug)]
0 commit comments