Skip to content

Commit

Permalink
Fix zeep client timeout parameter
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jmak-odoo authored and arthurdejong committed Jul 27, 2024
1 parent af3a728 commit 6cbb9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdnum/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def get_soap_client(wsdlurl, timeout=30): # pragma: no cover (not part of norma
# try zeep first
try:
from zeep.transports import Transport
transport = Transport(timeout=timeout)
transport = Transport(operation_timeout=timeout, timeout=timeout)
from zeep import CachingClient
client = CachingClient(wsdlurl, transport=transport).service
except ImportError:
Expand Down

0 comments on commit 6cbb9bc

Please sign in to comment.