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 eae0257 commit 676af73Copy full SHA for 676af73
lightning-block-sync/src/http.rs
@@ -21,8 +21,8 @@ use std::net::TcpStream;
21
/// Maximum HTTP message header size in bytes.
22
const MAX_HTTP_MESSAGE_HEADER_SIZE: usize = 8192;
23
24
-/// Maximum HTTP message body size in bytes.
25
-const MAX_HTTP_MESSAGE_BODY_SIZE: usize = 4_000_000;
+/// Maximum HTTP message body size in bytes. Enough for a hex-encoded block in JSON format.
+const MAX_HTTP_MESSAGE_BODY_SIZE: usize = 2 * 4_000_000 + 64;
26
27
/// Endpoint for interacting with an HTTP-based API.
28
#[derive(Debug)]
0 commit comments