-
Notifications
You must be signed in to change notification settings - Fork 285
Make proxy request read timeout configurable #6285
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -227,6 +227,13 @@ type RunConfig struct { | |
| // time.Duration field serializes as nanoseconds in JSON. | ||
| SessionTTL string `json:"session_ttl,omitempty" yaml:"session_ttl,omitempty" example:"2h"` | ||
|
|
||
| // ProxyReadTimeout bounds reading the entire request (headers + body) on the | ||
| // proxy HTTP server, expressed as a Go duration string (e.g. "30s", "1m"). | ||
| // Empty uses the proxy default (30s). Negative durations and values that fail | ||
| // time.ParseDuration are rejected at runtime. Applies to all HTTP transports. | ||
| // String (not time.Duration) keeps the wire format unit-explicit. | ||
| ProxyReadTimeout string `json:"proxy_read_timeout,omitempty" yaml:"proxy_read_timeout,omitempty" example:"30s"` | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] Workload upgrades drop the configured proxy read timeout (Consensus: 10/10) Adding this persisted field also requires the Raised by: codex, general-quality, transport-architecture |
||
|
|
||
| // ProxyMode is the effective HTTP protocol the proxy uses. | ||
| // For stdio transports, this is the configured mode (sse or streamable-http). | ||
| // For direct transports (sse/streamable-http), this matches the transport type. | ||
|
|
||
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.
[LOW] Transport documentation needs timeout wording cleanup (Consensus: 7/10)
The preceding note says the transparent proxy does not impose a request timeout, which now reads as contradicting this section. Qualify it as lacking the MCP response-correlation timeout while still enforcing this HTTP read timeout; also remove the trailing whitespace on line 374 reported by
git diff --check.Raised by: general-quality