1

Google Cloud GCFSFileSystem对象采用requests_timeout默认值为 None 的参数。此参数未记录。

我认为这是我们放弃单个 GCFS 请求之前的时间。通过类比cache_timeout,记录在案,我假设它是以秒为单位的浮点值,这None意味着没有超时。

这个对吗?

4

1 回答 1

4

以秒为单位的整数值:

从 google.auth.transport.requests文档中提取:

timeout (Optional[int]): The number of seconds to wait for a
                response from the server. If not specified or if None, the
                requests default timeout will be used.

gcsfs.core 根据文档,它在第 490 行被调用。

编辑:默认超时为 120 秒,由_DEFAULT_TIMEOUT(感谢@John Hanley添加此信息

于 2020-08-05T19:34:28.810 回答