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

Behaviour of Polling Endpoint When Paused or Disabled #127

Open
independentid opened this issue Oct 5, 2023 · 1 comment
Open

Behaviour of Polling Endpoint When Paused or Disabled #127

independentid opened this issue Oct 5, 2023 · 1 comment
Labels
bug Something isn't working spec:SSF vFuture

Comments

@independentid
Copy link

RFC8936 doesn't have a concept of "stream management" built in, so there is currently no status or diagnostic issued to receivers when a stream is paused or disabled.

From the poller's perspective a paused event just looks like there are no events. It would be useful to have some condition be returned to provide information to the poller so that it too can pause, change-frequency, or check status endpoint periodically.

Alternative 1: Add status claims to polling response when status is not active

Define a new polling attribute that includes the status. If a stream state is not active, then "sets" attribute would be empty but a new attribute "status" and "reason" could indicate the current stream state.

Alternative 2: Use HTTP Status 409 and Special Response payload

409 - Conflict
The 409 (Conflict) status code indicates that the request could not be completed due to a conflict with the current state of the target resource. This code is used in situations where the user might be able to resolve the conflict and resubmit the request. The server SHOULD generate a payload that includes enough information for a user to recognize the source of the conflict.

In this case, the payload could be the same response as the status endpoint response.

@tulshi tulshi added bug Something isn't working spec:SSF labels Apr 20, 2024
@FragLegs
Copy link
Contributor

FragLegs commented May 9, 2024

If we make Stream Updated messages required on status transitions, does that satisfy this requirement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working spec:SSF vFuture
Projects
None yet
Development

No branches or pull requests

4 participants