Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce reset_options/2 facility #202

Merged
merged 6 commits into from
Mar 28, 2025

Conversation

keynslug
Copy link
Contributor

Meant to be used in situations when set_options/2 is too dumb: e.g. changing TLS version that in turn renders existing TLS server options incompatible.

See individual commits for details.

Meant to be used in situations when `set_options/2` is too dumb: e.g.
changing TLS version such that in turn makes existing TLS server options
incompatible.
src/esockd.erl Outdated
OptionsMerged = merge_opts(OptionsWas, Options),
with_listener_ref(ListenerRef, ?FUNCTION_NAME, [OptionsMerged]).

%% @doc Replace set of applicable options
Copy link
Member

@ieQu1 ieQu1 Mar 27, 2025

Choose a reason for hiding this comment

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

This comment is not very descriptive. What does "reset" mean? Merge given options with the defaults?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See refined comments.

@keynslug keynslug merged commit f2e2302 into emqx:master Mar 28, 2025
3 checks passed
@keynslug keynslug deleted the feat/EMQX-14050/reset-options branch March 28, 2025 08:41
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