mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
http2: use whatever the user sets for max requests
This commit is contained in:
parent
20a3da4437
commit
2b7fc18289
@ -226,7 +226,7 @@ module HTTPX
|
||||
def on_settings(*)
|
||||
@handshake_completed = true
|
||||
|
||||
@max_requests = [@max_requests, @connection.remote_settings[:settings_max_concurrent_streams]].max
|
||||
@max_requests = @connection.remote_settings[:settings_max_concurrent_streams] if @max_requests.zero?
|
||||
|
||||
@max_concurrent_requests = [@max_concurrent_requests, @max_requests].min
|
||||
send_pending
|
||||
|
Loading…
x
Reference in New Issue
Block a user