View definition

var ErrConnectionClosed

Defined in


ErrConnectionClosed may be returned from client methods if the server closes connection before returning the first response byte.

If you see this error, then either fix the server by returning 'Connection: close' response header before closing the connection or add 'Connection: close' request header before sending requests to broken server.

ErrConnectionClosed is referenced in 1 repository