Skip to content

net/http: connection reset by peer during "race" tests #17713

@rsc

Description

@rsc

From a recent all.bash on macOS Sierra:

--- FAIL: TestTimeoutHandlerRaceHeader (0.01s)
	serve_test.go:1943: Get http://127.0.0.1:49639: dial tcp 127.0.0.1:49639: getsockopt: connection reset by peer
--- FAIL: TestServerEmptyBodyRace_h2 (0.11s)
	serve_test.go:3685: Get https://127.0.0.1:49765: read tcp 127.0.0.1:49766->127.0.0.1:49765: read: connection reset by peer
	serve_test.go:3698: handler ran 19 times; want 20

I see stuff like this with some regularity. Not sure if Sierra changed something or the test is buggy or both.

/cc @bradfitz

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.TestingAn issue that has been verified to require only test changes, not just a test failure.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions