Skip to content

Improve graceful shutdown#481

Merged
peppy merged 4 commits intoppy:masterfrom
peppy:better-graceful-shutdown
May 5, 2026
Merged

Improve graceful shutdown#481
peppy merged 4 commits intoppy:masterfrom
peppy:better-graceful-shutdown

Conversation

@peppy
Copy link
Copy Markdown
Member

@peppy peppy commented Apr 24, 2026

Two prong fix:

  • No longer block on ConnectionStates – the whole point of graceful shutdown is we wait for users to be finished doing things. "being connected" is not one of those things, so this doesn't make sense.
  • Inform all clients on all hubs that the hub is going away soon. This allows clients to make informed decisions to switch over to a new hub as soon as possible.
  • Depends on Eagerly connect to latest server instance for best online experience osu#37506

peppy added 2 commits April 24, 2026 18:10
This would cause the server to never gracefully shutdown for one of two
reasons:

- On exception, connection states are not cleaned up.
- Clients may choose to remain on an old server forever.
@peppy peppy merged commit 3621799 into ppy:master May 5, 2026
2 checks passed
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