Fix missing timeout options in Request class (#33769)

This commit is contained in:
Claire 2025-01-29 09:42:20 +01:00 committed by Sunoru
parent f600f49cc8
commit 124cd10c67
Signed by: sunoru
GPG key ID: 442B84461FD0355A

View file

@ -81,8 +81,11 @@ class Request
max_hops: 3,
on_redirect: ->(response, request) { re_sign_on_redirect(response, request) },
},
}.merge(options).merge(
socket_class: use_proxy? || @allow_local ? ProxySocket : Socket,
}.merge(options)
timeout_class: PerOperationWithDeadline,
timeout_options: TIMEOUT
)
@options = @options.merge(proxy_url) if use_proxy?
@headers = {}