Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: read: connection reset by peer under high load #20960
What version of Go are you using (
In my opinion this issue occurs when the response is streamed into a dynamic allocated buffer.
No error is thrown when conn.Read() is send to a buffer with a fixed length.
Notice: even when the error is thrown, the response is buffered correct and complete.
GO Version I used: 1.10.3
I am seeing this error frequently (
I am running the client and server both on the same "localhost", and both are running a managed pool of "worker" goroutines in an attempt to limit the demand for resources.
The client and server each have 350+ goroutines (as reported by
I can run the same code on Ubuntu 18.04 LTS with more cores, memory, sockets, etc, and I eventually run into the same error message, although at a higher traffic load.
If there is a kernel limit, it would be nice to know what it is, so we could write our code so that it intentionally stays below that limit, rather than tweaking parameters and hoping it won't be a problem.
I see this topic was active a year ago, ... has there been any progress on this in the past year @bradfitz ?