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.

tornado: Set a half-second default timeout on requests from django.

Alex Vandiver8fc6d740cd2d
diff --git a/zerver/tornado/django_api.py b/zerver/tornado/django_api.py
index e6ec4b2deb8..118b2b66894 100644
--- a/zerver/tornado/django_api.py
+++ b/zerver/tornado/django_api.py
@@ -23,7 +23,7 @@ class TornadoAdapter(HTTPAdapter):
self,
request: PreparedRequest,
stream: bool = False,
- timeout: Union[None, float, Tuple[float, float], Tuple[float, None]] = None,
+ timeout: Union[None, float, Tuple[float, float], Tuple[float, None]] = 0.5,
verify: Union[bool, str] = True,
cert: Union[None, bytes, str, Container[Union[bytes, str]]] = None,
proxies: Optional[Mapping[str, str]] = None,