Skip to content

Conversation

@Lukasa
Copy link
Collaborator

@Lukasa Lukasa commented Jul 15, 2020

Motivation:

While NetworkPreference.best was supposed to abstract away the choice of
exactly which event loop would be used, on older Darwin platforms it
would actually lead to runtime crashes as it would try to use an
implementation it didn't have.

Modifications:

Have .best's .implementation fall back to POSIX on older platforms.

Result:

Fewer crashes on older platforms.

Motivation:

While NetworkPreference.best was supposed to abstract away the choice of
exactly which event loop would be used, on older Darwin platforms it
would actually lead to runtime crashes as it would try to use an
implementation it didn't have.

Modifications:

Have .best's .implementation fall back to POSIX on older platforms.

Result:

Fewer crashes on older platforms.
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, thanks @Lukasa

@glbrntt glbrntt merged commit 39c91a8 into grpc:master Jul 15, 2020
@Lukasa Lukasa deleted the cb-fall-back-to-posix branch July 15, 2020 15:32
@Lukasa Lukasa restored the cb-fall-back-to-posix branch July 15, 2020 15:56
@Lukasa Lukasa deleted the cb-fall-back-to-posix branch July 15, 2020 16:35
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.

Fatal error - macOS 10.13.6 - Crashes on PlatformSupport.makeEventLoopGroup(loopCount:networkPreference:logger:)

2 participants