Skip to content

Commit 6cbb9bc

Browse files
jmak-odooarthurdejong
authored andcommitted
Fix zeep client timeout parameter
The timeout parameter of the zeep transport class is not responsable for POST/GET timeouts. The operational_timeout parameter should be used for that. See mvantellingen/python-zeep#140 Closes #444 Closes #445
1 parent af3a728 commit 6cbb9bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdnum/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def get_soap_client(wsdlurl, timeout=30): # pragma: no cover (not part of norma
253253
# try zeep first
254254
try:
255255
from zeep.transports import Transport
256-
transport = Transport(timeout=timeout)
256+
transport = Transport(operation_timeout=timeout, timeout=timeout)
257257
from zeep import CachingClient
258258
client = CachingClient(wsdlurl, transport=transport).service
259259
except ImportError:

0 commit comments

Comments
 (0)