net/http: server will drop tcp connections after a certain number of concurrent connections are made #61924
Labels
arch-arm64
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Darwin
Milestone
What version of Go are you using (
go version
)?Tested on two machines:
arm:
x86:
Does this issue reproduce with the latest release?
yes. tested on
go version devel go1.22-8ecdc4e Thu Aug 10 14:38:22 2023 +0000 darwin/arm64
as wellWhat operating system and processor architecture are you using (
go env
)?go env
Outputarm: x86:
What did you do?
ran this test:
What did you expect to see?
both test cases, opening 100 concurrent connections to a server, and opening 1000 concurrent connections to a server, succeed
What did you see instead?
on x64, both test cases pass as expected
on arm, only the 100 concurrent connections case succeeds - the 1000 concurrent connections case fails with:
completed 0 connections but got err: Get "http://127.0.0.1:56934": read tcp 127.0.0.1:56943->127.0.0.1:56934: read: connection reset by peer
, with completed connections varying slightly. from my testing, something around 130 concurrent connections triggers this behaviorThe text was updated successfully, but these errors were encountered: