一旦zeep请求超时,如何取消请求

时间:2019-09-25 14:19:10

标签: python soap zeep

一旦请求超时,我们可以取消请求吗?我的代码如下:

s = Session()
s.headers['AccessToken'] = access_token
s.headers['LocationToken'] = location_token
client = Client(myURL, transport=Transport(session=s, operation_timeout=10))
client.service.SubmitOrder(request) //This request still return response after timeout

订单提交后,我收到了邮件。请求超时后,我不应该收到邮件。

0 个答案:

没有答案