Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

outgoing_webhook: Respect settings.OUTGOING_WEBHOOK_TIMEOUT_SECONDS.

Alex Vandiverffaccb8af223
diff --git a/zerver/lib/outgoing_webhook.py b/zerver/lib/outgoing_webhook.py
index 3a7fa175882..595cca43c00 100644
--- a/zerver/lib/outgoing_webhook.py
+++ b/zerver/lib/outgoing_webhook.py
@@ -36,7 +36,7 @@ class OutgoingWebhookServiceInterface(metaclass=abc.ABCMeta):
self.service_name: str = service_name
self.session: requests.Session = OutgoingSession(
role="webhook",
- timeout=10,
+ timeout=settings.OUTGOING_WEBHOOK_TIMEOUT_SECONDS,
headers={"User-Agent": "ZulipOutgoingWebhook/" + ZULIP_VERSION},
)