-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: TestServerEmptyBodyRace_h2 flakes with "connection reset by peer" #22540
Comments
@tombergan, does this ring any bells? |
TestCloseIdleConnections_h2 is #22413. I believe those "Dialing... Unsolicited response" messages are printed by tests that were running concurrently with the flakey tests. The "Unsolicited response" message is H1 while the flakey tests are H2. Further, I don't see those messages when I repro the second flake with I can't repro TestServerEmptyBodyRace_h2 on my linux workstation. It looks like Russ has filed an issue for that flake at least twice before, both times on a Mac and both times with the same error message: #18541 and #17713. |
Change https://golang.org/cl/75531 mentions this issue: |
Updates #22540 Change-Id: I26e79c25652976fac6f2e5a7afb4fd1240996d74 Reviewed-on: https://go-review.googlesource.com/75531 Reviewed-by: Tom Bergan <[email protected]> Run-TryBot: Tom Bergan <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
More digging. The "Unsolicited" log spam was added by 2da8a16 (@benburkert), also recently. |
... as part of TestNoBodyOnChunked304Response. |
Change https://golang.org/cl/75593 mentions this issue: |
Updates #22540 Change-Id: I63e8c4874f8a774e9c47affc856aadf8c35ca23b Reviewed-on: https://go-review.googlesource.com/75593 Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Tom Bergan <[email protected]>
I was able to reproduce this on my Mac (10.13.2) with,
and started to look into it, but when I ran that command again, it hung for a few seconds and then spewed out:
Does Darwin's TCP stack not recycle local port numbers as quickly as Linux, I guess? Do I need to wait 3 minutes or so before I'm allowed to run a test again? |
When I run |
Same here Code transport := &http.Transport{
Dial: (&net.Dialer{
Timeout: p.timeout,
}).Dial,
TLSHandshakeTimeout: p.timeout,
IdleConnTimeout: time.Second,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
client := &http.Client{
Transport: transport,
Timeout: p.timeout,
}
response, _ := client.Get(addr) Result 2018/11/27 09:38:02 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
2018/11/27 09:38:02 Unsolicited response received on idle HTTP channel starting with "DY></HTML>\r\n\r\n"; err=<nil>
2018/11/27 09:38:02 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
2018/11/27 09:38:02 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil> I use go version go1.9.4 linux/amd64 |
Same failure mode on |
Change https://golang.org/cl/261698 mentions this issue: |
I'm seeing lots of flaky tests in net/http. They all fail with a message like:
On my Mac just now:
linux-386 build dashboard:
I had a trybot failure with this earlier this evening too.
Not sure what's going on.
Welcome back, @bradfitz!
The text was updated successfully, but these errors were encountered: