firebase / firebase/firebase-cpp-sdk

[Bug] Intermittent network connections can create high cpu-use situations for desktop applications.

オープン
#1,629 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
api: auth new type: question
主要言語
C++
スター
326
フォーク
137
平均マージ
3日 9時間
マージ済み PR(30日)
5

説明

### [REQUIRED] Please fill in the following fields:

* Pre-built SDK
* Firebase C++ SDK version: 11.6.0
* Problematic Firebase Component: Auth
* Other Firebase Components in use: Database/Functions/Storage
* Platform you are using the C++ SDK on: Windows
* Platform you are targeting: Desktop

### [REQUIRED] Please describe the issue here:

Intermittent network connections can create high cpu-use situations for desktop applications.

#### Steps to reproduce:
- Sign into firebase auth.
- Close app.
- Remove internet.
- Open app and instantiate a user.

or

- interrupt internet access.

The following spams the console thousands of times:
```
INFO: USE_AUTH_EMULATOR not set.
INFO: USE_AUTH_EMULATOR not set.
```

This creates significant CPU load and overhead when the network connection is lost. I expect the attempt to connect to a live auth instance fails, but there is no rate limit on retries after time 'x', or graceful management of that particular scenario.

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

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

調査の方向性

No source file or test is named. Start by tracing Firebase Auth initialization after opening the desktop app without internet, then reproduce the repeated “USE_AUTH_EMULATOR not set” output during connection loss. Done means intermittent connectivity no longer causes unbounded log spam or significant CPU load.

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

評価

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

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

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