Skip to content

Commit

Permalink
Merge branch 'master' into uptime
Browse files Browse the repository at this point in the history
  • Loading branch information
felixsch authored Feb 8, 2024
2 parents d0b72a3 + a11c054 commit f099aa7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
class RegistrationSharing::Client
# default is 60 seconds, should be shorter than regsharing timer (30 seconds)
REGSHARING_TIMEOUT = 25

def initialize(peer, system_login)
@peer = peer
@system_login = system_login
Expand Down Expand Up @@ -42,6 +45,7 @@ def make_request(method, params)
'Authorization' => "Bearer #{RegistrationSharing.config_api_secret}",
'User-Agent' => "RMT::Regsharing/#{RMT::VERSION}"
},
timeout: REGSHARING_TIMEOUT,
body: JSON.dump(params),
capath: RegistrationSharing.config_ca_path
)
Expand Down

0 comments on commit f099aa7

Please sign in to comment.