Skip to content

Add a long-poll trait#3019

Merged
kstich merged 3 commits intomainfrom
long-poll-trait
Apr 7, 2026
Merged

Add a long-poll trait#3019
kstich merged 3 commits intomainfrom
long-poll-trait

Conversation

@JordonPhillips
Copy link
Copy Markdown
Contributor

This adds a trait to indicate that an operation is a long-polling operation. AWS has a few of these, and until now we've essentially just customized the HTTP timeouts on them to be 70 seconds or so. This will allow service owners to set the expectations.

This is also needed for some changes the AWS SDKs want to do for the standard retry strategy, where they'll change behavior for long-polling operations.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This adds a trait to indicate that an operation is a long-polling
operation.
@JordonPhillips JordonPhillips requested a review from a team as a code owner March 27, 2026 14:54
@JordonPhillips JordonPhillips requested a review from yefrig March 27, 2026 14:54
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This makes the timeoutMillis member required on the longPoll trait.
Without it, it's kinda ambiguous how the client should react. What
does "extra time" mean? Ultimately only the service owner can really
know, and so they should set it. The language is soft, so a client
may choose to wait longer.
@JordonPhillips JordonPhillips requested a review from kstich April 7, 2026 09:55
@kstich kstich merged commit 12ec9cb into main Apr 7, 2026
16 checks passed
@kstich kstich deleted the long-poll-trait branch April 7, 2026 19:14
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