Client: client does not close SSL socket after request completes
まだ誰も着手していません。
評価
調査の方向性
googlemaps.Client から始めて geocode リクエストのパスを追い、その後、コード例で ResourceWarning を再現します。リクエストのクリーンアップ動作を、参照されている google-api-python-client の issue および pull request と比較します。完了の条件は、リクエストによって未クローズの SSL ソケットが残されなくなることです。
索引モデルが issue の本文から書いたものです。
説明
Environment details
- Occurs with any request using googlemaps.Client
- macOS Mojave
- Library version: 4.4.2
Steps to reproduce
- Instantiate a googlemaps Client
- Make a request
- Observe warning of unclosed SSL socket in console
Code example
import googlemaps
def get_lat_lng(self, address: str):
gmaps = googlemaps.Client(key="api_key")
geocode_result = gmaps.geocode(address)
return geocode_result
Stack trace
ResourceWarning: unclosed <ssl.SSLSocket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.4', 59981), raddr=('172.217.12.10', 443)>
Impact:
Services using the googlemaps client could easily run out of sockets because of this bug.
Potential resolution:
This bug appears to be the same as https://github.com/googleapis/google-api-python-client/issues/618
If it is indeed the same there was a fix in google-api-python-client here: https://github.com/googleapis/google-api-python-client/pull/1038
- 主要言語
- Python
- スター
- 5k
- フォーク
- 1.4k
- 平均マージ
- 5時間 9分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googlemaps/google-maps-services-python のほかの issue
-
mapsオープンtriage me type: bug
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
-
triage me type: feature request
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
googlemaps/google-maps-services-python#541 · コメント 3 件 · リアクション 38 件 ·
-
Release failed - unexpected keyword argument: enable_address_descriptor still not supported対応中かも @Rahulcse79 が 194 日前に担当しました。 オープンtriage me type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
googlemaps/google-maps-services-python#540 · コメント 1 件 ·
-
triage me type: question
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
googlemaps/google-maps-services-python#539 · コメント 3 件 ·
-
triage me type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
googlemaps/google-maps-services-python の issue をすべて見る
似ている issue
-
bug drawing-tools
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
cofade/open-garden-planner#827 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug documentation good first issue help wanted testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
hololinked-dev/hololinked#213 ·
-
Show evidence time and supersede warnings in the memory inspector対応中かも @Sinchanak-212 が今日担当しました。 オープンarea: ux good first issue priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100