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.

@fabianfettfabianfett changed the title EventLoop preferences[HTTPRequestScheduler] EventLoop preferencesSep 6, 2021
@fabianfettfabianfett changed the title [HTTPRequestScheduler] EventLoop preferences[HTTPSchedulableRequest] EventLoop preferencesSep 6, 2021
@LukasaLukasa added the 🔨 semver/patch No public API change. label Sep 7, 2021
@LukasaLukasa merged commit 4068ee5 into swift-server:mainSep 7, 2021
@fabianfettfabianfett deleted the ff-eventLoop-preferences branch September 7, 2021 09:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patchNo public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@fabianfett@Lukasa@glbrntt