From 1e0b40696fe1d13e20a2eca85546b0cadd3b5ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 15 Aug 2026 08:05:22 +0200 Subject: [PATCH] Remove unreachable GATEWAY TIMEOUT in JSON-RPC retry Only SERVICE UNAVAILABLE error code is retried. --- tryton/tryton/jsonrpc.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tryton/tryton/jsonrpc.py b/tryton/tryton/jsonrpc.py index d84287394a..4ba8406b0b 100644 --- a/tryton/tryton/jsonrpc.py +++ b/tryton/tryton/jsonrpc.py @@ -312,10 +312,6 @@ class ServerProxy(xmlrpc.client.ServerProxy): delay = int( e.headers.get('Retry-After', count)) except ValueError: - if isinstance( - e.errcode, HTTPStatus.GATEWAY_TIMEOUT): - # Do not retry on timeout without delay - raise delay = count delay = min(delay, 10) time.sleep(delay)