Skip to content

Conversation

@JeremS
Copy link
Collaborator

@JeremS JeremS commented Nov 25, 2025

Besides some minor fixes (mostly to examples and docstrings) this PR's goal is to simplify the Ring SSEGen implementation.

Currently the Ring SSE generator prevents users from fiddling with internals. More specifically it throws if a user tries to reuse a SSEGenerator as a ring response body in more than one response.

This is unlikely to happen, the current documentation explicitly explains how to use the API and this protection makes for convoluted code involving locks.

The proposed implementation from this PR removes that protection to allow for a much simpler code.

@JeremS JeremS changed the title Jetty SSEGen refactor Ring SSEGen refactor Nov 26, 2025
…tion

The previous implementation used a complicated logic involving locks to
protect against an api usage that should not happen. The protection is
now removed, the code is much simpler.
@JeremS JeremS force-pushed the jetty-simplification branch from 3d1daf3 to 0b66653 Compare November 27, 2025 22:55
@Ramblurr
Copy link
Contributor

@JeremS I won't be able to look at this until Monday, sorry about that.

@JeremS
Copy link
Collaborator Author

JeremS commented Nov 29, 2025

@Ramblurr I can wait till then!

Copy link
Contributor

@Ramblurr Ramblurr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, the ring generator much cleaner now!

@JeremS JeremS merged commit 38880a4 into starfederation:main Dec 14, 2025
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