卡在read不就是no bytes have been received on the underlying socket吗
【 在 cn62 的大作中提到: 】
: 标 题: Re: requests.get timeout不生效
: 发信站: 水木社区 (Wed Feb 8 20:01:21 2023), 转信
:
: requests的timeout并不是针对整个请求的,而是server没有响应的最大时间。
: 所以如果网速比较慢,但又没断,那就可能很久都不会timeout。
:
: timeout is not a time limit on the entire response download; rather, an exception is raised if the server has not issued a response for timeout seconds (more precisely, if no bytes have been received on the underlying socket for timeout seconds)
:
: 【 在 iwannabe 的大作中提到: 】
: : 看docker里的进程卡在read(3,.),并不会断开
: : 这是怎么回事
: : 怎么解决
:
: --
:
: ※ 来源:·水木社区
http://www.mysmth.net·[FROM: 36.251.85.*]
--
FROM 222.71.112.*