Skip to content

Commit

Permalink
Merge pull request #48501 from Faless/js/4.x_http_client_chunk
Browse files Browse the repository at this point in the history
[HTML5] Use 64KiB chunk size in JS HTTPClient.
  • Loading branch information
akien-mga authored May 6, 2021
2 parents d81ea63 + 6243835 commit 7b8a864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/javascript/http_client.h.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7b8a864

Please sign in to comment.