fix: respect proxy env vars in runner client

Fixes #957.

Co-Authored-By: Codet GPT-5 <codet@commitgo.local>
This commit is contained in:
Lunny Xiao
2026-05-13 09:49:35 -07:00
parent 763b38ece3
commit 553d5d601d
2 changed files with 28 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ import (
func getHTTPClient(endpoint string, insecure bool) *http.Client {
transport := &http.Transport{
Proxy: http.ProxyFromEnvironment,
MaxIdleConns: 10,
MaxIdleConnsPerHost: 10, // All requests go to one host; default is 2 which causes frequent reconnects.
IdleConnTimeout: 90 * time.Second,