mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
update curl/wolfssl, add per host connection limit
This commit is contained in:
parent
c1b78e1d0c
commit
5579550b8d
8 changed files with 15 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue