fix(s3): treat any 2xx as success in store_request#430
Open
tpjg wants to merge 3 commits into
Open
Conversation
added 3 commits
June 3, 2026 09:49
A successful S3 DELETE returns 204 No Content, not 200. The previous
match only accepted StatusCode::OK, so every successful delete fell
through to the catch-all arm and was misreported as a ConnectionError
("Received 204 No Content from S3-compatible API."). Accept any 2xx.
…unded growth Awareness::remove_state removed the client from `states` but update_meta left a permanent entry in `meta`. On a long-lived server-side Awareness (one per loaded document), this grows by one entry for every client session that ever connected - a slow, unbounded memory leak on documents that never go idle. remove_state now also prunes meta entries that have no corresponding state and were last touched more than 30s ago (the y-protocols outdatedTimeout convention). The grace window preserves the clock check that rejects stale updates from a just-disconnected client. Uses time::OffsetDateTime rather than std::time::Instant because y-sweet-worker compiles this crate to wasm32, where Instant::now panics.
…dirty flag (jamsocket#417), pycrdt bound (jamsocket#414)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A successful S3 DELETE returns 204 No Content, not 200. The previous match only accepted StatusCode::OK, so every successful delete fell through to the catch-all arm and was misreported as a ConnectionError ("Received 204 No Content from S3-compatible API."). Accept any 2xx.