Skip to content

android: use internal engine thread#531

Merged
junr03 merged 1 commit intomasterfrom
android-run-engine
Oct 22, 2019
Merged

android: use internal engine thread#531
junr03 merged 1 commit intomasterfrom
android-run-engine

Conversation

@junr03
Copy link
Copy Markdown
Member

@junr03 junr03 commented Oct 21, 2019

Description: "Recent changes (namely #498) made it unnecessary for the platform-level clients to start Envoy on newly spawned threads. In fact, these changes actually introduced potential races where consumers of the platform clients could end up calling send on engines that hadn't finished starting on these threads."

This PR removes the custom threading logic in Kotlin in favor of simply using the new threading being done within the core. Parallel to #530.
Risk Level: med - reduce threading complexity
Testing: local app.

Signed-off-by: Jose Nino jnino@lyft.com

Signed-off-by: Jose Nino <jnino@lyft.com>
rebello95 added a commit that referenced this pull request Oct 21, 2019
Recent changes (namely #498) made it unnecessary for the platform-level clients to start Envoy on newly spawned threads. In fact, these changes actually introduced potential races where consumers of the platform clients could end up calling `send` on engines that hadn't finished starting on these threads.

This PR removes the custom threading logic in Swift in favor of simply using the new threading being done within the core. Another PR will make the same change on Android: #531.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
@junr03 junr03 merged commit 8449854 into master Oct 22, 2019
@junr03 junr03 deleted the android-run-engine branch October 22, 2019 17:26
jpsim pushed a commit to envoyproxy/envoy that referenced this pull request Nov 28, 2022
Recent changes (namely envoyproxy/envoy-mobile#498) made it unnecessary for the platform-level clients to start Envoy on newly spawned threads. In fact, these changes actually introduced potential races where consumers of the platform clients could end up calling `send` on engines that hadn't finished starting on these threads.

This PR removes the custom threading logic in Swift in favor of simply using the new threading being done within the core. Another PR will make the same change on Android: envoyproxy/envoy-mobile#531.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit to envoyproxy/envoy that referenced this pull request Nov 29, 2022
Recent changes (namely envoyproxy/envoy-mobile#498) made it unnecessary for the platform-level clients to start Envoy on newly spawned threads. In fact, these changes actually introduced potential races where consumers of the platform clients could end up calling `send` on engines that hadn't finished starting on these threads.

This PR removes the custom threading logic in Swift in favor of simply using the new threading being done within the core. Another PR will make the same change on Android: envoyproxy/envoy-mobile#531.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants