Configure default timeout for all API calls
Maintainer antworten meist innerhalb von 1 Tag
@yliaog arbeitet bereits daran.
Seit 05.12.2022.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 7.7k
- Forks
- 3.5k
- Ø Merge
- 1 T. 5 Std.
- Gemergte PRs (30 T.)
- 23
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus kubernetes-client/python
-
getheaders is deprecated in urllib3 >= 2.0.0Evtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offenkind/bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
kubernetes-client/python#2280 · 16 Kommentare · 9 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Make async an extraOffenkind/feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
kubernetes-client/python#2739 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Growing library sizeOffenhelp wanted
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
kubernetes-client/python#2677 · 15 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add option to disable strict x509 verifcation in sync clientEvtl. vergeben @Vishwa0223 hat das vor 55 Tagen übernommen. Offenhelp wanted kind/feature
kubernetes-client/python#2602 · 6 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
v36.0.0 regression fetching container logsEvtl. wieder frei @yliaog hat das vor 94 Tagen übernommen, und es ist kein Pull Request offen. Offenkind/bug
kubernetes-client/python#2596 · 19 Kommentare · 2 Reaktionen · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in kubernetes-client/python
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
SwiftKickMobile/skai#84 ·
-
Lychee link check failedOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
jxxghp/MoviePilot#7070 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
flop-labs/technocore-chat#997 ·
Maintainer antworten meist innerhalb von 1 Tag
-
tunneld on Windows: Wi-Fi devices are not discovered because uvicorn runs on a ProactorEventLoopOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
doronz88/pymobiledevice3#2051 ·
Maintainer antworten meist innerhalb von 1 Tag