Skip to content

core: engine callbacks -- add on_exit#507

Merged
junr03 merged 2 commits intomasterfrom
android-detach
Oct 17, 2019
Merged

core: engine callbacks -- add on_exit#507
junr03 merged 2 commits intomasterfrom
android-detach

Conversation

@junr03
Copy link
Member

@junr03 junr03 commented Oct 16, 2019

Description: this is a follow up to #498. This PR introduces envoy_engine_callbacks. They are similar in nature to envoy_http_callbacks. The difference being that they are not exposed all the way to consumer level in the library as it is not needed right now. However, one can see how by adding a type erased context pointer, and following the platform patterns for http callbacks we could thread this all the way up if need be. The immediate need for these callbacks is to detach the engine's native thread from the JVM on Android.
Risk Level: med -- adds complexity to engine management.
Testing: local testing on devices (Lyft and example app on iOS and Android).

In conjunction with #498 this PR Fixes #492 #445

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

goaway
goaway previously approved these changes Oct 16, 2019
Copy link
Contributor

@goaway goaway left a comment

Choose a reason for hiding this comment

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

This looks great @junr03 - thanks!

@junr03 junr03 mentioned this pull request Oct 16, 2019
@junr03 junr03 changed the base branch from ms/engine to master October 17, 2019 04:22
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
@junr03
Copy link
Member Author

junr03 commented Oct 17, 2019

I tested on kotlin locally and it worked well. I am going to keep an eye on the liveliness test, maybe it went flaky again :/

@junr03 junr03 merged commit 7b7cc0d into master Oct 17, 2019
@junr03 junr03 deleted the android-detach branch October 17, 2019 18:32
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.

core/ios: crash when force-closing app with Envoy

3 participants