Skip to content

fix: use connection pool per request#45

Open
Allob wants to merge 2 commits into
developmentfrom
f/use-connection-pool
Open

fix: use connection pool per request#45
Allob wants to merge 2 commits into
developmentfrom
f/use-connection-pool

Conversation

@Allob

@Allob Allob commented Aug 21, 2025

Copy link
Copy Markdown
Collaborator

Description of changes

Create a single connection pool per request to avoid using too much connections of the dial core.
To do this, DialApiClient is created within the RequestContext to store the aiohttp.ClientSession to use for the requests to the dial core. This session accepts only dial relative urls and already has necessary api-key headers.
Metadata url in the AttachmentLink is now represented as a relative url to be able to use it in the DialApiClient session.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Allob

Allob commented Aug 21, 2025

Copy link
Copy Markdown
Collaborator Author

/deploy-review

Environment URL: review-environment | pipeline

@Allob

Allob commented Aug 22, 2025

Copy link
Copy Markdown
Collaborator Author

/deploy-review

Environment URL: review-environment | pipeline

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.

1 participant