clockworklabs / clockworklabs/SpacetimeDB
How to close server gracefully
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 25.2k
- Forks
- 1.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 46
Description
Ctrl+C and kill command result in this on the subscribed client: ❯ spacetime subscribe testdb "SELECT * FROM person;"
WARNING: This command is UNSTABLE and subject to breaking changes.
Error: WebSocket protocol error: Connection reset without closing handshake
Caused by:
Connection reset without closing handshake
Is tehre a way to turn off the spacetime start instance gracefully so the handshake is closed successfully?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no source files, tests, or entry points. Reproduce the shutdown with spacetime subscribe testdb "SELECT * FROM person;" while stopping the spacetime start instance, then trace the server and subscribed-client shutdown behavior. Done means the server exits gracefully and the client receives a completed WebSocket closing handshake instead of a connection-reset error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend, database, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100