We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b78d077 + 9dbd07a commit c59e9ebCopy full SHA for c59e9eb
lib/orchestrator_client.rb
@@ -28,9 +28,12 @@ def create_http(root_url)
28
f.headers['User-Agent'] = config['User-Agent']
29
f.ssl['ca_file'] = config['cacert']
30
f.ssl['version'] = :TLSv1_2
31
- # Do not use net-http-persistent on windows
+ # net-http-persistent does not work reliably on Windows, so fall back
32
+ # to net-http
33
if !!File::ALT_SEPARATOR
- f.adapter :net_http
34
+ f.adapter :net_http do |http|
35
+ http.read_timeout = config['read-timeout'] if config['read-timeout']
36
+ end
37
else
38
f.adapter :net_http_persistent, pool_size: 5 do |http|
39
http.idle_timeout = 30
0 commit comments