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

fix: Add session retries to constructor to avoid starting new connections #18

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

staticf0x
Copy link
Contributor

Calling utils.add_session_retries(self.session) during _get_session, which is called in _get causes urrlib3 to start a new connection every time, leading to wasted resources and drops in performance. Calling it once on the session prevents this.

coregio/registry_api.py Outdated Show resolved Hide resolved
@Allda
Copy link
Owner

Allda commented Jan 18, 2024

Can you please use following commit message formats in order to automatically generate changelog and release package https://www.conventionalcommits.org/en/v1.0.0/

@staticf0x staticf0x changed the title Add session retries to constructor to avoid starting new connections fix: Add session retries to constructor to avoid starting new connections Jan 18, 2024
@Allda Allda self-requested a review January 18, 2024 13:16
@Allda Allda merged commit 8b6c2b2 into Allda:main Jan 18, 2024
4 checks passed
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.

None yet

2 participants