MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / loadRequestTransport

Function loadRequestTransport

agent/utils/version/version.go:205–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203}
204
205func loadRequestTransport() *http.Transport {
206 return &http.Transport{
207 TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
208 DialContext: (&net.Dialer{
209 Timeout: 60 * time.Second,
210 KeepAlive: 60 * time.Second,
211 }).DialContext,
212 TLSHandshakeTimeout: 5 * time.Second,
213 ResponseHeaderTimeout: 10 * time.Second,
214 IdleConnTimeout: 15 * time.Second,
215 }
216}

Callers 1

HandleRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected