diff --git a/app/models/passwordstate_server.rb b/app/models/passwordstate_server.rb index 6da2c715cb4549dab72b1e1f01d235d6486a19f6..1f454586d162b1f65c445fc6aaee4acf4339e709 100644 --- a/app/models/passwordstate_server.rb +++ b/app/models/passwordstate_server.rb @@ -109,7 +109,7 @@ class PasswordstateServer < ApplicationRecord def client require 'passwordstate' - @client ||= Passwordstate::Client.new(url, api_type: api_type.to_sym, timeout: 10).tap do |cl| + @client ||= Passwordstate::Client.new(url, api_type: api_type.to_sym, open_timeout: 5, timeout: 10).tap do |cl| if api_type.to_sym == :api cl.auth_data = { apikey: password } else