From 2811eeabbe30b753a250ddc8a206900ce2f9dcd9 Mon Sep 17 00:00:00 2001 From: rastruja Date: Wed, 24 Apr 2024 13:59:16 +0200 Subject: [PATCH] operation_timeout inside AsyncTransport POST/GET operation_timeout --- src/zeep/transports.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/zeep/transports.py b/src/zeep/transports.py index 8e6970d2..44f9730c 100644 --- a/src/zeep/transports.py +++ b/src/zeep/transports.py @@ -194,6 +194,7 @@ def __init__( timeout=operation_timeout, ) self.logger = logging.getLogger(__name__) + self.operation_timeout = operation_timeout self.wsdl_client.headers = { "User-Agent": "Zeep/%s (www.python-zeep.org)" % (get_version()) @@ -221,6 +222,7 @@ async def post(self, address, message, headers): address, content=message, headers=headers, + timeout=self.operation_timeout, ) self.logger.debug( "HTTP Response from %s (status: %d):\n%s", @@ -240,6 +242,7 @@ async def get(self, address, params, headers): address, params=params, headers=headers, + timeout=self.operation_timeout, ) return self.new_response(response)