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

Use async HTTPClient in RegistryClient #8089

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Nov 1, 2024

Motivation:

To adopt Swift concurrency in ManifestLoader, we need to convert RegistryClient first, which then would require use of HTTPClient instead of LegacyHTTPClient.

Modifications:

Converted (and as a consequence, simplified) code in RegistryClient.

Result:

One major previous adopter of LegacyHTTPClient is now compatible with Swift concurrency.

1000+ lines of code removed.

Since RegistryClient was blocking Swift concurrency thread pool and also used .sharedConcurrent dispatch queue, this potentially fixes thread explosion/deadlocks that may have been caused by previously broken code.

@MaxDesiatov MaxDesiatov added the bug label Nov 5, 2024
@MaxDesiatov MaxDesiatov self-assigned this Nov 5, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test macos

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant