Configure default timeout for all API calls
維護者通常 1 天內回覆
@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
- 平均合併
- 1 天 13 小時
- 30 天內合併 PR
- 21
環境準備
- 沒有 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 · 18 則留言 · 9 個 reaction ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 68/100
kubernetes-client/python#2756 · 1 則留言 ·
維護者通常 1 天內回覆
-
kind/feature
難度 4/5 3-5 天 新手友好度 55/100
kubernetes-client/python#2752 · 3 則留言 ·
維護者通常 1 天內回覆
-
Make async an extra可能已有人在做 @jdork0 於 3 天前認領。 未關閉kind/feature
難度 2/5 1-3 小時 新手友好度 55/100
kubernetes-client/python#2739 · 3 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
help wanted
難度 5/5 一週以上 新手友好度 35/100
kubernetes-client/python#2677 · 15 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
查看 kubernetes-client/python 的全部 Issue
相似的 Issue
-
link-rot
難度 1/5 1 小時以內 新手友好度 67/100
-
難度 2/5 1-3 小時 新手友好度 82/100
developmentseed/titiler-cmr#265 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
Insecure Brotli version <1.2.1可能已有人在做 @jamescw19 今天認領。 未關閉
難度 1/5 1 小時以內 新手友好度 85/100
stac-utils/stac-fastapi-pgstac#438 · 1 個 reaction ·
-
bug triage
難度 2/5 1-3 小時 新手友好度 66/100
維護者通常 1 天內回覆