Skip to content

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