Add opt-out for Streamable HTTP standalone GET stream#1699
Merged
jeffhandley merged 2 commits intoJul 15, 2026
Merged
Conversation
tarekgh
reviewed
Jul 14, 2026
5c8f473 to
1778312
Compare
Contributor
Author
|
The two failing Linux jobs are in unrelated OAuth integration tests: Debug failed in I do not have permission to rerun the upstream workflow. Could a maintainer rerun the failed jobs? I will leave the transport patch unchanged unless a changed-surface test fails. |
tarekgh
reviewed
Jul 14, 2026
- Rename the option to the affirmative EnableStandaloneGetStream with a = true default - Invert the guard in StartUnsolicitedMessageStreamIfEnabled to check EnableStandaloneGetStream - Set EnableStandaloneGetStream = false in the four transport tests and rename them to _DisablingStandaloneGetStream_ - Update transports.md and stateless.md to the new name, true default, and affirmative wording Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jeffhandley
approved these changes
Jul 14, 2026
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.
Fixes #1637.
Summary
Adds
HttpClientTransportOptions.EnableStandaloneGetStream(aboolthat defaults totrue) so Streamable HTTP clients can skip the standalone GET SSE stream when they do not need unsolicited server-to-client messages.Default behavior is unchanged: the transport opens the standalone GET SSE stream after initialization. Set the option to
falseto skip it -- the transport no longer startsReceiveUnsolicitedMessagesAsync()after initialize or when resuming a known session, but direct and streaming responses to client POST requests still work.Changes
HttpClientTransportOptions.EnableStandaloneGetStream(defaulttrue).Why
Some clients run with constrained
HttpClientconnection pools. If a server holds the standalone GET stream open, later POSTs can queue behind that long-lived request and initialization can time out. SettingEnableStandaloneGetStreamtofalsegives those clients a narrow opt-out without changing default behavior for clients that rely on unsolicited notifications.Verification