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

0930 deduplicate reconnect callbacks 0.5.9 #53

Merged

Conversation

zmstone
Copy link
Member

@zmstone zmstone commented Sep 30, 2024

fixes EEC-1097

The issue, is the reconnect callbacks are evaluated in the reversed order when they were added.
But the infinite growth of the list is a ticking bomb.
So this PR also made an attempt to make it possible to deduplicate.

The fix is quite hacky in oder to support hot-upgrade.

related: emqx/epgsql#11

src/ecpool_worker.erl Outdated Show resolved Hide resolved
src/ecpool_worker.erl Outdated Show resolved Hide resolved
@zmstone zmstone merged commit 0c10add into emqx:dev/0.5.9 Sep 30, 2024
4 checks passed
@zmstone zmstone deleted the 0930-deduplicate-reconnect-callbacks-0.5.9 branch September 30, 2024 17:27
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