Skip to content
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

consider using a shared connection cache #9

Open
rjbs opened this issue May 19, 2020 · 1 comment
Open

consider using a shared connection cache #9

rjbs opened this issue May 19, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@rjbs
Copy link
Member

rjbs commented May 19, 2020

my $ua = LWP::UserAgent->new;
$ua->default_header(Authorization => "token $token");
$ua->default_header(Accept => "application/vnd.github.v3+json");

Thrown out as an idea for the future, largely: if you have several remote at the same service, you may end up with more distinct TCP connections than required. You should be able to provide them all with a shared-across-the-app LWP::ConnCache to minimize this.

@mmcclimon
Copy link
Contributor

Yeah, will not do this now, but leave this open for the future.

@mmcclimon mmcclimon added the enhancement New feature or request label May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants