Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Configure default timeout for all API calls

オープン
#1,961 コメント 30 件 リアクション 8 件 担当者 1 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@yliaog がすでに取り組んでいます。

2022年12月5日 から。

評価

この issue はまだ評価されていません。

説明

kind/feature lifecycle/stale

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時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kubernetes-client/python のほかの issue

kubernetes-client/python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。