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

Switch to offline mode when server is in maintenance mode #1646

Merged
merged 1 commit into from
May 6, 2024

Conversation

SystemKeeper
Copy link
Collaborator

While we react correctly to a 503 http error, we fail to take that into account when retrieving messages.

How to test:

  • Enter a conversation while maintenance mode is off
  • Enable maintenance mode on the server
  • Wait until the timeout for retrieving new messages ends

Without this PR:
We end up in an infinity loop and try to request new messages multiple times a second

With this PR:
We switch to offline mode, show the maintenance message and don't try to retrieve messages anymore.

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
@SystemKeeper SystemKeeper requested a review from Ivansss May 1, 2024 21:27
@Ivansss Ivansss merged commit 1384276 into master May 6, 2024
10 checks passed
@Ivansss Ivansss deleted the offline-mode-while-in-chat branch May 6, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants