summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-05-06 14:44:19 +0200
committerGitHub <noreply@github.com>2021-05-06 14:44:19 +0200
commit7b8a86421174d572bf59cf680b17a7ceb660bc50 (patch)
tree4a704fa6c6c89c76c1607b84b603556360a609a3
parentd81ea631d91bd282b823ab03d68123befe4027c0 (diff)
parent6243835619b38134a78a98283ac9a350a990348e (diff)
Merge pull request #48501 from Faless/js/4.x_http_client_chunk
[HTML5] Use 64KiB chunk size in JS HTTPClient.
-rw-r--r--platform/javascript/http_client.h.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/http_client.h.inc b/platform/javascript/http_client.h.inc
index 842a93fcba..6544d41c98 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<String> &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;