Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gilgm12 opened this issue Jul 23, 2024 · 0 comments

Comments

@gilgm12
Copy link

gilgm12 commented Jul 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants