suds-community / suds

Suds is a lightweight SOAP python client for consuming Web Services. A community fork of the jurko fork.
https://suds.readthedocs.io/
GNU Lesser General Public License v3.0
173 stars 56 forks source link

Allow setting timeout per endpoint (or per call) #29

Closed phillbaker closed 4 years ago

phillbaker commented 4 years ago

Currently a timeout can be set per client so that it is enforced globally for the client. However, if a specific endpoint is slow and a service wants to enforce a different timeout per endpoint, that is not (easily) possible.

Each service call does the following: https://github.com/suds-community/suds/blob/7ed17b730ec06fc633c6bc0bcb2eeec45b7ab6d0/suds/client.py#L747 https://github.com/suds-community/suds/blob/7ed17b730ec06fc633c6bc0bcb2eeec45b7ab6d0/suds/transport/http.py#L80 https://github.com/suds-community/suds/blob/7ed17b730ec06fc633c6bc0bcb2eeec45b7ab6d0/suds/transport/http.py#L127

Currently all invocations of calls accept a __inject parameter: https://github.com/suds-community/suds#message-injection--diagnosticstesting

phillbaker commented 4 years ago

Closed in https://github.com/suds-community/suds/commit/defe3ecf8056451874ee177cef1ad1f669f59042