core: add missing extension registration#24750
Conversation
Signed-off-by: Rafal Augustyniak <raugustyniak@lyft.com>
|
CC @envoyproxy/mobile-maintainers: FYI only for changes made to |
Signed-off-by: Rafal Augustyniak <raugustyniak@lyft.com>
|
@alyssawilk the crash I observed was happening when we were trying to add a listener envoy/source/server/worker_impl.cc Line 57 in 2e8413c |
|
Legacy add direct response doesn't serve a direct response but instead proxies to the loopback listener, which wouldn't play well when missing a connection handler. That said I thought I fixed the proxying for add direct response in #24402 so I'm not clear why adding a direct response would trigger this path any more :-/ |
|
looking at the envoy/mobile/library/objective-c/EnvoyConfiguration.m Lines 128 to 137 in 2e8413c I think that we are still injecting the fake listener for cases when direct responses are defined. We replace envoy/mobile/library/common/config/config.cc Line 375 in 2e8413c envoy/mobile/library/objective-c/EnvoyConfiguration.m Lines 141 to 142 in 2e8413c |
|
ahhh, that'd do it. How would you folks feel about removing that listener overall, if I can sort out all the tests? I'd planned on doing it as a follow up but didn't want to rush things in case y'all had other deps on it |
|
Removing the listener sounds fine 👍 @alyssawilk Do you think that having #24495 without having whatever is in this PR fine for cases when EM does not add direct responses? I am asking since we pushed exactly that (#24495 without the registration calls) to our prod release pipeline yesterday and I am trying to determine whether I need to patch that pushed version with the fix from this PR to avoid crashing our apps? I cannot repro a crash without |
|
So this is all code which shouldn't be accessed by E-M (which is why I'm trying to remove it) but as you say the direct response path is inadvertently using it when I thought it was fixed, so I'd lean towards erring on the side of caution and cherry picking. I'm sorry I missed yet another force-register :-( |
Commit Message: A follow up fixes to envoyproxy#24495. Without these fixes application crashes after `addDirectResponse` call on `TestEngineBuilder` (iOS only api) as the `handler_` in https://github.com/envoyproxy/envoy/blob/93ea91f42ef749a4560a4596174402a5aad8ee65/source/server/worker_impl.cc#L61 is `nullptr`. Additional Description: The question is whether without the added registration calls application may crash even without the `addDirectResponse` call. cc @alyssawilk. Asking since Lyft has pushed envoyproxy#24495 to prod pipeline already and the question is whether we need to cherry-pick the fix from this PR now. Risk Level: Low Testing: Docs Changes: Release Notes: Platform Specific Features: [Optional Runtime guard:] [Optional Fixes #Issue] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional [API Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):] Signed-off-by: Rafal Augustyniak <raugustyniak@lyft.com> Signed-off-by: Ohad Vano <ohadvano@microsoft.com>
Commit Message: A follow up fixes to envoyproxy#24495. Without these fixes application crashes after `addDirectResponse` call on `TestEngineBuilder` (iOS only api) as the `handler_` in https://github.com/envoyproxy/envoy/blob/93ea91f42ef749a4560a4596174402a5aad8ee65/source/server/worker_impl.cc#L61 is `nullptr`. Additional Description: The question is whether without the added registration calls application may crash even without the `addDirectResponse` call. cc @alyssawilk. Asking since Lyft has pushed envoyproxy#24495 to prod pipeline already and the question is whether we need to cherry-pick the fix from this PR now. Risk Level: Low Testing: Docs Changes: Release Notes: Platform Specific Features: [Optional Runtime guard:] [Optional Fixes #Issue] [Optional Fixes commit #PR or SHA] [Optional Deprecated:] [Optional [API Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):] Signed-off-by: Rafal Augustyniak <raugustyniak@lyft.com> Signed-off-by: VishalDamgude <vishal.damgude@freshworks.com>
Commit Message: A follow up fixes to #24495. Without these fixes application crashes after
addDirectResponsecall onTestEngineBuilder(iOS only api) as thehandler_inenvoy/source/server/worker_impl.cc
Line 61 in 93ea91f
nullptr.Additional Description: The question is whether without the added registration calls application may crash even without the
addDirectResponsecall. cc @alyssawilk. Asking since Lyft has pushed #24495 to prod pipeline already and the question is whether we need to cherry-pick the fix from this PR now.Risk Level: Low
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]
Signed-off-by: Rafal Augustyniak raugustyniak@lyft.com