mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Merge pull request #1256 from chef/ap/ssl-hang
Fix nil timeout and retries
This commit is contained in:
commit
efb90c12d2
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class SSL < Inspec.resource(1)
|
|||
'tls1.2',
|
||||
].freeze
|
||||
|
||||
attr_reader :host, :port
|
||||
attr_reader :host, :port, :timeout, :retries
|
||||
|
||||
def initialize(opts = {})
|
||||
@host = opts[:host]
|
||||
|
@ -71,7 +71,7 @@ class SSL < Inspec.resource(1)
|
|||
res = Parallel.map(groups, in_threads: 8) do |proto, e|
|
||||
[proto, SSLShake.hello(x.resource.host, port: x.resource.port,
|
||||
protocol: proto, ciphers: e.map(&:cipher),
|
||||
timeout: @timeout, retries: @retries)]
|
||||
timeout: x.resource.timeout, retries: x.resource.retries)]
|
||||
end
|
||||
Hash[res]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue