You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently running the Harbor project using Docker Compose. When accessing Nginx-Python with our Golang client, we have encountered an issue where, approximately every few hours, the client experiences an EOF error. Upon investigating with tcpdump, we observed that about one minute after the request, Nginx-Python sometimes sends a RST packet to the client, which results in the Golang client receiving an EOF.
Could you please provide any advice or insights on how to resolve this issue?
Below are the settings for our Golang client:
funcHTTPClient(tlsCfg*tls.Config) *http.Client {
dialFunc:=func(ctx stdctx.Context, network, addrstring) (net.Conn, error) {
return (&net.Dialer{
Timeout: 30*time.Second,
KeepAlive: 60*time.Second,
}).DialContext(ctx, network, addr)
}
client:=&http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: dialFunc,
TLSClientConfig: tlsCfg,
DisableCompression: false,
// NOTE: The large number of Idle Connections can// reduce overhead of building connections.IdleConnTimeout: 90*time.Second,
TLSHandshakeTimeout: 10*time.Second,
ExpectContinueTimeout: 1*time.Second,
},
}
returnclient
}
Thanks a lot!
The text was updated successfully, but these errors were encountered:
Hi Team,
We are currently running the Harbor project using Docker Compose. When accessing Nginx-Python with our Golang client, we have encountered an issue where, approximately every few hours, the client experiences an EOF error. Upon investigating with tcpdump, we observed that about one minute after the request, Nginx-Python sometimes sends a RST packet to the client, which results in the Golang client receiving an EOF.
Could you please provide any advice or insights on how to resolve this issue?
Below are the settings for our Golang client:
Thanks a lot!
The text was updated successfully, but these errors were encountered: