mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #377] [MERGED] fix(proxy): allow slow guest HTTP response headers #388
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#388
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/377
Author: @LSX-s-Software
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @yingdi-shan
Base:
main← Head:fix/proxy-timeout📝 Commits (1)
0166171fix(proxy): separate HTTP and WS response header timeouts📊 Changes
3 files changed (+21 additions, -8 deletions)
View changed files
📝
services/README.md(+1 -1)📝
services/gateway/internal/server.go(+9 -1)📝
src/api/proxy.rs(+11 -6)📄 Description
What
Allow guest HTTP services to take longer than 30 seconds before sending response headers, while keeping WebSocket handshake protection and gateway routing behavior bounded appropriately.
Why
The node proxy previously used the same 30-second timeout for HTTP response headers and WebSocket handshakes. A guest service that legitimately needed more than 30 seconds to produce its first response headers received
504 Gateway Timeout.Related issue
N/A.
Scope and non-goals
This change only adjusts proxy timeout semantics. It does not change request-body idle handling, sandbox lifecycle timeouts, or response-body streaming behavior.
Design and behavior changes
Compatibility and operations
Validation
cargo fmt --all -- --checkcargo test -p agentenv --lib proxymake -C services test(run asgo test ./...inservices/)make clippymake test-unitmaketargetCommands and results:
Skipped checks and reasons:
make clippy,make test-unit, and integration suites were not run because this focused proxy change was validated with the relevant Rust unit tests and complete services test suite. No schema or generated-code changes are involved.Risks and reviewer notes
The longer HTTP response-header deadline permits a stuck guest service to retain a connection for up to 10 minutes before the proxy releases it. The request-body idle timeout and WebSocket handshake timeout remain bounded. Review the context split in
services/gateway/internal/server.gotogether with the timeout constants insrc/api/proxy.rs.Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.