Skip to content

[HTTPSchedulableRequest] EventLoop preferences #415

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

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

fabianfett
Copy link
Member

Motivation

Currently we have a var eventLoopPreference: HTTPClient.EventLoopPreference requirement on HTTPSchedulableRequest. Sadly in the .indifferent case the HTTPSchedulableRequest does not expose an eventLoop to create a connection on.

Changes

  • Replaced the var eventLoopPreference: HTTPClient.EventLoopPreference on the HTTPSchedulableRequest with var requiredEventLoop: EventLoop? and var preferredEventLoop: EventLoop

Result

We don't need to hold an EventLoopGroup in the ConnectionPoolStateMachine.

@fabianfett fabianfett requested review from Lukasa and glbrntt September 6, 2021 15:39
@fabianfett fabianfett changed the title EventLoop preferences [HTTPRequestScheduler] EventLoop preferences Sep 6, 2021
@fabianfett fabianfett changed the title [HTTPRequestScheduler] EventLoop preferences [HTTPSchedulableRequest] EventLoop preferences Sep 6, 2021
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Sep 7, 2021
@Lukasa Lukasa merged commit 4068ee5 into swift-server:main Sep 7, 2021
@fabianfett fabianfett deleted the ff-eventLoop-preferences branch September 7, 2021 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants