mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #393] [MERGED] fix(gateway): size reverse proxy idle connection pools for node fan-out #400
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#400
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/393
Author: @guozy18
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @yingdi-shan
Base:
main← Head:sync/gateway-connection-pool📝 Commits (1)
0826e9ffix(gateway): size reverse proxy idle connection pools for node fan-out📊 Changes
1 file changed (+20 additions, -0 deletions)
View changed files
📝
services/gateway/internal/server.go(+20 -0)📄 Description
What
Reuse a dedicated HTTP transport across gateway reverse proxies, retaining up to 128 idle connections per backend host.
Why
The default two idle connections per host cause avoidable connection churn under concurrent node fan-out.
Related issue
N/A — focused synchronization of an existing implementation.
Scope and non-goals
Gateway proxy transport.
Design and behavior changes
Clone the default transport, remove the global idle-connection limit, and set MaxIdleConnsPerHost to 128. Preserve the default idle timeout and the main branch API-key handling.
Compatibility and operations
Validation
Validated independently on upstream main
949cec2plus this single commit, using the existing gateway, scheduler and shared-package suites.Risks and reviewer notes
Idle connections can grow with backend count; the per-host limit and idle timeout bound retention. No throughput benchmark was run.
The original author, author date and commit message are preserved. Main-branch adaptations are described above.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.