Skip to content

net/http: memory leak in http.Transport #5794

Closed
@gopherbot

Description

@gopherbot

by pkulak:

What steps will reproduce the problem?

getIdleConnCh() is called for every round trip (called by getConn, which is called by
RoundTrip), regardless of weather keepAlives are on. In my case, with an app that's
connecting to hundreds of thousands of different hosts, that idleConnCh map just keeps
filling up and filling up forever.


Which operating system are you using?

OSX and Ubuntu


Which version are you using?  (run 'go version')

"go version go1.1 darwin/amd64"
"go version go1.1.1 linux/amd64"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions