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,.),并不会断开
: 这是怎么回事
: 怎么解决
--
FROM 36.251.85.*