diff options
Diffstat (limited to 'lib/net/hippie/client.rb')
| -rw-r--r-- | lib/net/hippie/client.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb index 21a6cb5..2760d74 100644 --- a/lib/net/hippie/client.rb +++ b/lib/net/hippie/client.rb @@ -11,6 +11,7 @@ module Net }.freeze attr_accessor :mapper + attr_accessor :read_timeout def initialize( certificate: nil, @@ -24,6 +25,7 @@ module Net @key = key @mapper = ContentTypeMapper.new @passphrase = passphrase + @read_timeout = 30 @verify_mode = verify_mode end @@ -66,7 +68,7 @@ module Net def http_for(uri) http = Net::HTTP.new(uri.host, uri.port) - http.read_timeout = 30 + http.read_timeout = read_timeout http.use_ssl = uri.scheme == 'https' http.verify_mode = verify_mode http.set_debug_output(Net::Hippie.logger) |
