Skip to content

fix(gateway): apply server and mcp request timeouts to the gateway env - #363

Merged
edenreich merged 1 commit into
mainfrom
fix/issue-358-20261117-0700
Nov 17, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/issue-358-20261117-0700

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

The Gateway CRD accepted spec.server.timeouts and spec.mcp.timeouts.request but buildContainer never read them, so the gateway always ran with its own defaults.

  • spec.server.timeouts.read, .write, .idle now become SERVER_READ_TIMEOUT, SERVER_WRITE_TIMEOUT, SERVER_IDLE_TIMEOUT (new serverTimeoutEnv, next to clientTLSEnv).
  • spec.mcp.timeouts.request now becomes MCP_REQUEST_TIMEOUT when MCP is enabled.
  • Empty fields are skipped (same pattern as the A2A timeouts), so the gateway keeps its own defaults when a field is unset.
  • Two tests: values are passed through, and unset fields emit nothing.

No CRD or API change, so no regenerated manifests.

Behavior change

When spec.server.timeouts is set, the CRD defaults (60s/60s/300s) now actually reach the gateway instead of its built-in 30s/30s/120s. Same for spec.mcp.timeouts (10s request instead of 5s). If spec.server.timeouts is omitted entirely, nothing changes.

Checks

task fmt, task vet, task lint (0 issues) and task test pass locally.

Closes #358

Generated with Claude Code

@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner November 17, 2026 07:04
@edenreich
edenreich merged commit 03322a4 into main Nov 17, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-358-20261117-0700 branch November 17, 2026 07:13
inference-gateway-releaser Bot added a commit that referenced this pull request Nov 17, 2026
## [0.37.1](v0.37.0...v0.37.1) (2026-11-17)

### 🐛 Bug Fixes

* **gateway:** apply server and mcp request timeouts to the gateway env ([#363](#363)) ([03322a4](03322a4))

### 👷 CI

* align Dependabot schedule and grouping ([#350](#350)) ([a9ec246](a9ec246))
* **deps:** bump go.opentelemetry.io/otel/sdk from 1.45.0 to 1.47.0 ([#346](#346)) ([c98a06c](c98a06c))
* set up orchestrators from repos.yaml ([#351](#351)) ([99c4f6b](99c4f6b))

### 📚 Documentation

* add guardrails, mtls, agent mcp and receiver examples ([#364](#364)) ([f8dbeec](f8dbeec))
* Add Mirelo and Webwright to provider list and correct FAQ namespace advice ([#353](#353)) ([0c5ff1f](0c5ff1f))
* align gateway, agent and install docs with the controllers ([#362](#362)) ([4ba29fe](4ba29fe)), closes [#357](#357)
* **orchestrator:** fix example secret namespace and mcp build step ([#360](#360)) ([3d7319c](3d7319c))
* **providers:** document mirelo and webwright ([#344](#344)) ([7f410fd](7f410fd))
* use lowercase commit subjects in AGENTS.md examples ([#354](#354)) ([c0d20cb](c0d20cb))
* wire gpu example through openai and drop custom provider ([#361](#361)) ([c613bee](c613bee))

### 🔧 Miscellaneous

* **deps:** bump flox dependencies to latest ([#348](#348)) ([baaeb1e](baaeb1e))
* **deps:** bump flox dependencies to latest ([#349](#349)) ([9dfad6d](9dfad6d))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.37.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Gateway spec.server.timeouts and spec.mcp.timeouts.request are accepted but never applied

1 participant