Configure default timeout for all API calls
维护者通常 3 天内回复
@yliaog 已经在做这个了。
开始于 2022年12月5日。
评估
这个 Issue 还没有评估数据。
描述
What is the feature and why do you need it:
All API calls done through this client today goes through urllib3, where the timeout is default to set to None, this means infinite timeout and is a well known pitfall with urllib3. Lost connection attempts can get stuck waiting forever, with no retries being done to reestablish the connection.
Quoting the requests-documentation which uses urllib3 under the hood:
Nearly all production code should use this parameter in nearly all requests. Failure to do so can cause your program to hang indefinitely:
There is a _request_timeout kwargs argument that can be set on each api-call, but that is both tedious, easy to forget and not type-checked due to use of kwargs-dictionarly.
Describe the solution you'd like to see:
Similar to how retries is configured, Configuration should accept a timeout-argument, this can be forwarded into urllib3s poolmanager where it uses this timeout for all operations where an explicit timeout is not provided.
- 主要语言
- Python
- 星标
- 7.7k
- 派生
- 3.5k
- 平均合并
- 3 天 4 小时
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kubernetes-client/python 的其他 Issue
-
getheaders is deprecated in urllib3 >= 2.0.0可能重新可做 关联的 PR 已关闭且未合并。 未关闭kind/bug
难度 1/5 1 小时以内 新手友好度 68/100
kubernetes-client/python#2280 · 16 条评论 · 9 个 reaction ·
维护者通常 3 天内回复
-
Security: pin oauthlib>=4.0.0 (CVE-2026-49264, CVE-2026-49265)可能已有人在做 @friedrichwilken 于 3 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 30/100
kubernetes-client/python#2720 ·
维护者通常 3 天内回复
-
Release 1.37可能重新可做 @yliaog 于 37 天前认领,目前没有进行中的 PR。 未关闭
kubernetes-client/python#2691 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 3 天内回复
-
help wanted
难度 5/5 一周以上 新手友好度 35/100
kubernetes-client/python#2677 · 14 条评论 · 1 个 reaction ·
维护者通常 3 天内回复
-
Add option to disable strict x509 verifcation in sync client可能已有人在做 @Vishwa0223 于 41 天前认领。 未关闭help wanted kind/feature
kubernetes-client/python#2602 · 6 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
查看 kubernetes-client/python 的全部 Issue
相似的 Issue
-
json_params_matcher fails on falsy top-level JSON primitives (0, False, "")可能已有人在做 @mayureshsonawane17 今天认领。 未关闭Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
bojieli/ai-agent-book#1169 ·
维护者通常 1 天内回复
-
priority:low ready-for-dev
难度 2/5 1-3 小时 新手友好度 78/100
OpenHands/extensions#738 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
micronaut-projects/micronaut-core#13677 ·
维护者通常 1 天内回复