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(listen): support hot config update of MQTT listeners #12201

Merged
merged 12 commits into from Dec 20, 2023

Conversation

keynslug
Copy link
Contributor

@keynslug keynslug commented Dec 19, 2023

Part of EMQX-11527.
Part of EMQX-11528.

Release version: v5.4

Shortcomings / TODOs

  1. No hot-update support for QUIC listeners.
  2. No hot-update support for gateway listeners.
  3. [TCP/SSL] Some changes will still cause full listener restart, which shuts down live connections.
    • bind
    • tcp_options.backlog
    • tcp_options.reuseaddr
  4. [WS/WSS] Most of the changes will cause listener socket to be reopened, yet unaccepted connections will be lost.

Summary

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • Added property-based tests for code which performs user input validation
  • Changed lines covered in coverage report
  • Change log has been added to changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • Created PR to emqx-docs if documentation update is required, or link to a follow-up jira ticket
  • Schema changes are backward compatible

@keynslug keynslug requested review from lafirest and a team as code owners December 19, 2023 10:27
@keynslug keynslug force-pushed the feat/EMQX-11527/tls-hot-update branch 2 times, most recently from d12d631 to 7daa1b6 Compare December 19, 2023 13:59
@keynslug keynslug changed the title feat(listen): support hot config update of esockd-based listeners feat(listen): support hot config update of MQTT listeners Dec 19, 2023
@keynslug keynslug force-pushed the feat/EMQX-11527/tls-hot-update branch from 7daa1b6 to 7e40496 Compare December 19, 2023 15:06
zmstone
zmstone previously approved these changes Dec 19, 2023
emqx_listeners:stop_listener(ssl, ?FUNCTION_NAME, LConf).
ClientSSLOpts = [
{verify, verify_peer},
{cacertfile, CACertfile},
Copy link
Contributor

Choose a reason for hiding this comment

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

set certfile as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, but the point is that the server is not yet verifying peers.

@keynslug keynslug merged commit d3b32b6 into emqx:release-54 Dec 20, 2023
162 checks passed
@keynslug keynslug deleted the feat/EMQX-11527/tls-hot-update branch December 20, 2023 08:45
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.

None yet

3 participants