mirror of https://github.com/caronc/apprise
Gotify read connection timeout set to 2.5s (#246)
parent
0bbdbbb547
commit
200e0fabaa
|
@ -80,6 +80,10 @@ class NotifyGotify(NotifyBase):
|
||||||
# Disable throttle rate
|
# Disable throttle rate
|
||||||
request_rate_per_sec = 0
|
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
|
# Define object templates
|
||||||
templates = (
|
templates = (
|
||||||
'{schema}://{host}/{token}',
|
'{schema}://{host}/{token}',
|
||||||
|
@ -191,6 +195,7 @@ class NotifyGotify(NotifyBase):
|
||||||
data=dumps(payload),
|
data=dumps(payload),
|
||||||
headers=headers,
|
headers=headers,
|
||||||
verify=self.verify_certificate,
|
verify=self.verify_certificate,
|
||||||
|
timeout=self.connection_timeout,
|
||||||
)
|
)
|
||||||
if r.status_code != requests.codes.ok:
|
if r.status_code != requests.codes.ok:
|
||||||
# We had a problem
|
# We had a problem
|
||||||
|
|
Loading…
Reference in New Issue