firebase / firebase/firebase-cpp-sdk
[Bug] Intermittent network connections can create high cpu-use situations for desktop applications.
- Lenguaje dominante
- C++
- Estrellas
- 326
- Forks
- 137
- Merge medio
- 3 d 9 h
- PR fusionados (30 d)
- 5
Descripción
### [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.
Guía de contribución
Línea de trabajo
No se especifica ningún archivo fuente ni ninguna prueba. Empieza siguiendo la inicialización de Firebase Auth después de abrir la aplicación de escritorio sin conexión a Internet y, a continuación, reproduce la salida repetida “USE_AUTH_EMULATOR not set” durante la pérdida de conexión. Se considera terminado cuando la conectividad intermitente ya no provoca spam ilimitado en los logs ni una carga significativa de CPU.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- authentication, desktop
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100