-
Notifications
You must be signed in to change notification settings - Fork 19
Introduce inactivity_timeout #222
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
Conversation
appsdesh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Push and Pull are delivery mechanisms defined outside the SSF spec. We should not introduce new aspects specifically targeting a single delivery mechanism in the SSF spec
I agree. Can we just make this |
Thanks! The same concept can be applied to PULL streams too, let me reword this as simply stream_tll. |
Resolve latest comments
inactivity_ttl is more descriptive than just stream_ttl
Co-authored-by: Shayne Miel (he/him) <miel.shayne@gmail.com>
Since the comments have been resolved in the PR, I'm going to "dismiss" this review. @appsdesh please comment if you think this still needs addressing. |
The comments from this review were resolved by the author.
Co-authored-by: Shayne Miel (he/him) <miel.shayne@gmail.com>
Co-authored-by: Shayne Miel (he/him) <miel.shayne@gmail.com>
FragLegs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Thanks for all the diligence getting it tuned up so well.
|
|
||
| inactivity_timeout | ||
|
|
||
| > **Transmitter-Supplied**, OPTIONAL. The refreshable inactivity timeout of the stream in seconds. After the timeout duration passes with no eligible activity from the Receiver, as defined below, the Transmitter MAY either pause, disable, or delete the stream. The syntax is the same as that of `expires_in` from Section A.14 of {{RFC6749}}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the timeout duration passes with no eligible activity from the Receiver
We should consider successful event delivery to the receiver as an eligible activity and possibly clarify it. We don't always need Rx making API calls, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For PUSH streams that's not enough, at least from a security/privacy perspective - receiver endpoints are more likely to be open, the only way to verify that the receiver exists and still has the right auth/access is for it to call the transmitter endpoints (oauth-protected in most cases).
For PULL, polling is sufficient.
#211