Project

General

Profile

« Previous | Next » 

Revision 7f722008

Added by Michael Moll about 8 years ago

use Timeout.timeout in node.rb

timeout alone is deprecated in Ruby 2.3

Closes GH-438

View differences:

files/external_node_v2.rb
# query External node
begin
result = ""
timeout(tsecs) do
Timeout.timeout(tsecs) do
result = enc(certname)
cache(certname, result)
end

Also available in: Unified diff