情况1:如果你要是用postman做测试,可以设置postman http request time_out:

【python web】解决http time_out的问题(504)

 

 

 

 情况2:如果client也使用python写的,那直接修改HTTPRequest的_DEFAULTS中的参数即可。

或者通过构造一个request对象,然后进行设置:

1  http_client = httpclient.HTTPClient()
2  response = None
3  req = httpclient.HTTPRequest(url, request_timeout=time_out)
4  response = http_client.fetch(req)
5  r = response.body

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2021-05-25
  • 2021-04-09
  • 2021-06-28
  • 2021-10-06
  • 2022-12-23
猜你喜欢
  • 2021-10-12
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
相关资源
相似解决方案