Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tornado: Retry POST requests from Django to Tornado.
Alex Vandiver5a9b6feb1876
diff --git a/zerver/tornado/django_api.py b/zerver/tornado/django_api.pyindex 853d74acee4..61156afc950 100644--- a/zerver/tornado/django_api.py+++ b/zerver/tornado/django_api.py@@ -17,7 +17,10 @@ from zerver.tornado.sharding import get_tornado_port, get_tornado_uri, notify_toclass TornadoAdapter(HTTPAdapter):def __init__(self) -> None:- retry = Retry(total=3, backoff_factor=1)+ # All of the POST requests we make to Tornado are safe to+ # retry; allow retries of them, which is not the default.+ retry_methods = Retry.DEFAULT_METHOD_WHITELIST | set(['POST'])+ retry = Retry(total=3, backoff_factor=1, method_whitelist=retry_methods)super().__init__(max_retries=retry)def send(