Skip to content

net/http: TestCancelRequestWhenSharingConnection can cause port exhaustion, leading to frequent test failures with "Only one usage of each socket address" on windows-amd64-longtest #47016

@bcmills

Description

@bcmills

What version of Go are you using?

release-branch.go1.15

Does this issue reproduce with the latest release?

No.

What did you expect to see?

Tests on the current release branches (release-branch.go1.15 and release-branch.go1.16) consistently passing, especially for all first class ports.

What did you see instead?

Tests on the windows-amd64-longtest builder started failing intermittently in March, got better for a while in May, and are now failing in net/http on just about every run (https://build.golang.org/?repo=&branch=release-branch.go1.15#short):
image

The failure mode consists of many Only one usage of each socket address errors (https://build.golang.org/log/30a479e652cc31796c8d900ab0494ffff5765266), sometimes accompanied by a test deadlock or timeout (https://build.golang.org/log/3ff9e1b80ee03390ebb171468f0fb00ceb23795d).

These failures result in TryBot / SlowBot failures on the release branch for unrelated backports (https://golang.org/cl/332330). Since the builders are consistently broken, there is a substantial risk that these failures will cause some other regression on this branch to go unnoticed.

CC @neild @golang/release

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions