Skip to content

Reusing the connection pool when cloning a client #281

Description

@chuanhhoang

I am writing an app that need to use different clients for different goroutines (so for example, requests to same sites with different accounts will be possible because different clients use different cookiejars). So I need to clone the orginial client for each goroutine but the problem is when cloning the client, the transports are cloned too with a new connection pool and it is a big waste of resources because if I have 200 goroutines, there will be 200 connection pools to be created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmodified-stdlibInvolves modified Go stdlib files (transport.go, transfer.go, etc.)priority:lowMinor issue or feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions