firebase / firebase/firebase-cpp-sdk

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

Đang mở
#1,629 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
api: auth new type: question
Ngôn ngữ chính
C++
Star
326
Fork
137
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### [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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.