mirror of
https://github.com/caronc/apprise.git
synced 2025-02-16 10:19:50 +01:00
Gotify read connection timeout set to 2.5s (#246)
This commit is contained in:
parent
0bbdbbb547
commit
200e0fabaa
@ -80,6 +80,10 @@ class NotifyGotify(NotifyBase):
|
||||
# Disable throttle rate
|
||||
request_rate_per_sec = 0
|
||||
|
||||
# If no bytes have been received on the underlining socket for
|
||||
# connection_timeout seconds, close the connection.
|
||||
connection_timeout = 2.5
|
||||
|
||||
# Define object templates
|
||||
templates = (
|
||||
'{schema}://{host}/{token}',
|
||||
@ -191,6 +195,7 @@ class NotifyGotify(NotifyBase):
|
||||
data=dumps(payload),
|
||||
headers=headers,
|
||||
verify=self.verify_certificate,
|
||||
timeout=self.connection_timeout,
|
||||
)
|
||||
if r.status_code != requests.codes.ok:
|
||||
# We had a problem
|
||||
|
Loading…
Reference in New Issue
Block a user