Skip to content

Added fix for crash observed on listener update while draining old listener's place-holder filter-chain - #3

Open
anirudha-oc wants to merge 1 commit into
on_demand_filter_chain_MAINfrom
lds_update_crash_fix
Open

Added fix for crash observed on listener update while draining old listener's place-holder filter-chain#3
anirudha-oc wants to merge 1 commit into
on_demand_filter_chain_MAINfrom
lds_update_crash_fix

Conversation

@anirudha-oc

Copy link
Copy Markdown

When we push a listener configuration containing an on-demand filter chain, a placeholder is created for that. Thus, no FilterChainFactoryContext is created (factory_context_ == nullptr). This factory_context_ is used by filter chain draining logic to trigger the filter chain draining process.

If we again push a new listener config with changes in the on-demand filter chain, this will drain the previous placeholder. It will use factory_context_ to trigger the draining process. But since factory_context_ is null, calling startDraining() function using factory_context_ caused a segfault (crash).

These changes fix that crash.

@anirudha-oc anirudha-oc self-assigned this Nov 11, 2020
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.

1 participant