Google Cloud GCFSFileSystem对象采用requests_timeout
默认值为 None 的参数。此参数未记录。
我认为这是我们放弃单个 GCFS 请求之前的时间。通过类比cache_timeout
,记录在案,我假设它是以秒为单位的浮点值,这None
意味着没有超时。
这个对吗?
Google Cloud GCFSFileSystem对象采用requests_timeout
默认值为 None 的参数。此参数未记录。
我认为这是我们放弃单个 GCFS 请求之前的时间。通过类比cache_timeout
,记录在案,我假设它是以秒为单位的浮点值,这None
意味着没有超时。
这个对吗?
以秒为单位的整数值:
从 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添加此信息)