Skip to content

net/http: test fails with "Too many goroutines running" after benchmarks #9033

Closed
@jbardin

Description

@jbardin
What does 'go version' print?

go1.4beta1

What steps reproduce the problem?

from net/http run:

    $ go test -run NONE -bench ClientServerParallel

What happened?

Test failure with:

Too many goroutines running after net/http test(s).
1 instances of:
net/http.(*persistConn).writeLoop(0xc2085738c0)
    /home/pretzel/go/src/net/http/transport.go:945 +0x41d
created by net/http.(*Transport).dialConn
    /home/pretzel/go/src/net/http/transport.go:661 +0xcbc1 instances of:
net/http.(*persistConn).writeLoop(0xc208601ef0)
    /home/pretzel/go/src/net/http/transport.go:945 +0x41d
created by net/http.(*Transport).dialConn
[...]

Please provide any additional information below.

On linux/amd64 the goroutines all seem to be in *persistConn.writeLoop, while on
darwin/amd64 they all over the place in various goroutines.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions