Skip to content
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

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

Closed
rsc opened this issue Nov 1, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@rsc
Copy link
Contributor

commented Nov 1, 2016

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

@rsc rsc added this to the Go1.8 milestone Nov 1, 2016

@bradfitz

This comment has been minimized.

Copy link
Member

commented Nov 10, 2016

Same comment here as #17651 (comment)

I ran all these tests in a loop on Sierra (on my home iMac 5K) and can't reproduce.

Closing for now. Please reopen if you see any flake, though. I'm not content with any test being flaky.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.