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

Set MaxIdleConnsPerHost for pushes #2132

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

jonjohnsonjr
Copy link
Contributor

@jonjohnsonjr jonjohnsonjr commented Jul 22, 2022

This should reduce "use of closed network connection" errors due to too
many idle connections. Because we only expect to reach a couple hosts
during pushes anyway, this should be safe.

Currently, the value defaults to 2. This change sets it to half the
total IdleConnsPerHost, which defaults to 100.

New value is 100 / 2 = 50.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Only 2 idle connections are permitted per host, which can lead to issues when pushing many layers.

Issue Number: #1989

What is the new behavior?

Allow 50 idle connections per host.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This should reduce "use of closed network connection" errors due to too
many idle connections. Because we only expect to reach a couple hosts
during pushes anyway, this should be safe.

Currently, the value defaults to 2. This change sets it to half the
total IdleConnsPerHost, which defaults to 100.

New value is 100 / 2 = 50.
@jonjohnsonjr jonjohnsonjr marked this pull request as ready for review July 22, 2022 20:06
Copy link
Collaborator

@gravypod gravypod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gravypod gravypod merged commit 55ffa70 into bazelbuild:master Jul 25, 2022
St0rmingBr4in pushed a commit to St0rmingBr4in/rules_docker that referenced this pull request Oct 17, 2022
This should reduce "use of closed network connection" errors due to too
many idle connections. Because we only expect to reach a couple hosts
during pushes anyway, this should be safe.

Currently, the value defaults to 2. This change sets it to half the
total IdleConnsPerHost, which defaults to 100.

New value is 100 / 2 = 50.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants