update curl/wolfssl, add per host connection limit

This commit is contained in:
ading2210 2024-10-24 04:54:00 -04:00
parent c1b78e1d0c
commit 5579550b8d
8 changed files with 15 additions and 9 deletions

View file

@ -4,7 +4,7 @@ class HTTPSession extends CurlSession {
this.options = options;
this.base_url = undefined;
this.set_connections(50, 40);
this.set_connections(50, 40, 6);
this.import_cookies();
}

View file

@ -28,9 +28,9 @@ class CurlSession {
}
}
set_connections(connections_limit, cache_limit) {
set_connections(connections_limit, cache_limit, host_conn_limit=0) {
this.assert_ready();
_session_set_options(this.session_ptr, connections_limit, cache_limit);
_session_set_options(this.session_ptr, connections_limit, cache_limit, host_conn_limit);
}
end_callback(request_id, error) {