libhv icon indicating copy to clipboard operation
libhv copied to clipboard

requests 超时问题

Open 0x1306a94 opened this issue 1 year ago • 3 comments

  • 使用requests发起请求,超时后response 为 null.
  • 是不是只要是response 为null, 就是超时的原因哇

0x1306a94 avatar May 12 '24 08:05 0x1306a94

不一定,也有可能是没连接上,连接中断等原因

ithewei avatar May 15 '24 06:05 ithewei

@ithewei 后面是否可以考虑下,返回具体错误呢?

0x1306a94 avatar May 15 '24 11:05 0x1306a94

直接使用HttpClient.send接口会返回带错误码的

ithewei avatar May 17 '24 09:05 ithewei