From 6243835619b38134a78a98283ac9a350a990348e Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Thu, 6 May 2021 14:00:52 +0200 Subject: [PATCH] [HTML5] Use 64KiB chunk size in JS HTTPClient. For consistency with the native one, and the documentation. --- platform/javascript/http_client.h.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/javascript/http_client.h.inc b/platform/javascript/http_client.h.inc index 842a93fcbae..6544d41c98e 100644 --- a/platform/javascript/http_client.h.inc +++ b/platform/javascript/http_client.h.inc @@ -34,7 +34,8 @@ Error make_request(Method p_method, const String &p_url, const Vector &p static void _parse_headers(int p_len, const char **p_headers, void *p_ref); int js_id = 0; -int read_limit = 4096; +// 64 KiB by default (favors fast download speeds at the cost of memory usage). +int read_limit = 65536; Status status = STATUS_DISCONNECTED; String host;