lib/httpx/options.rb in httpx-0.14.5 vs lib/httpx/options.rb in httpx-0.15.0
- old
+ new
@@ -5,18 +5,20 @@
WINDOW_SIZE = 1 << 14 # 16K
MAX_BODY_THRESHOLD_SIZE = (1 << 10) * 112 # 112K
CONNECT_TIMEOUT = 60
OPERATION_TIMEOUT = 60
KEEP_ALIVE_TIMEOUT = 20
+ SETTINGS_TIMEOUT = 10
DEFAULT_OPTIONS = {
:debug => ENV.key?("HTTPX_DEBUG") ? $stderr : nil,
:debug_level => (ENV["HTTPX_DEBUG"] || 1).to_i,
:ssl => {},
:http2_settings => { settings_enable_push: 0 },
:fallback_protocol => "http/1.1",
:timeout => {
connect_timeout: CONNECT_TIMEOUT,
+ settings_timeout: SETTINGS_TIMEOUT,
operation_timeout: OPERATION_TIMEOUT,
keep_alive_timeout: KEEP_ALIVE_TIMEOUT,
},
:headers => {},
:window_size => WINDOW_SIZE,