-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client probability returns an error about ErrConnectionClosed #1892
Comments
I'm not sure I understand what the issue is here, can you post a reproducible example? |
client->ngnix->server. |
func HttpPostJson(nginxUrl string, data interface{}) (respBody []byte, err error) {
} func ReceiveRequest(data interface{}) { |
Please post the server-side processing code and Nginx configuration together. |
It cost about 70ms from send msg to resp error:the server closed connection before returning the first response byte. Make sure the server returns 'Connection: close' response header before closing the connection.The code is as follows:
c := fasthttp.Client{}
c.TLSConfig = &tls.Config{
InsecureSkipVerify: true,
}
if err = c.DoTimeout(req, resp, 10*time.Second); err != nil {
return
}
Server message packet:
The text was updated successfully, but these errors were encountered: