firebase / firebase/firebase-admin-java

Not meaningful timeout default values leading to hanging requests

オープン
#901 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
needs-triage
主要言語
Java
スター
620
フォーク
305
平均マージ
3時間 23分
マージ済み PR(30日)
1

説明

### [REQUIRED] Step 2: Describe your environment

* Operating System version: MacOS Sonoma 14.1.1
* Firebase SDK version: v9.2.0
* Library version: _____
* Firebase Product: Firebase Cloud Messaging

### [REQUIRED] Step 3: Describe the problem
Sometimes the Google Server do not respond (like described in #850 ). However, the default values to read timeout and connect timeout are "0" because they are default initialized with 0 in the FirebaseOptions. So these requests hang for infinite time.

#### Steps to reproduce:
Send a message via FCM and the SDK. If Google does not respond, there is not timeout.

#### Fix:
Provide meaningful default values like 20s. This is the default in the Google HTTP Client (com.google.api.client.http.HttpRequest#readTimeout).

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、FirebaseOptions が Firebase Cloud Messaging へのリクエストに使用される読み取りタイムアウト値と接続タイムアウト値をどのように初期化しているかを追跡し、Google HTTP Client のデフォルト値と比較します。Google が応答しない場合でもリクエストが無期限にハングしなくなり、選択したデフォルトのタイムアウト動作をテストでカバーできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
networking
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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