Skip to content

Expose erldns:stop_listeners/0 - #363

Merged
NelsonVides merged 1 commit into
mainfrom
feat/stop-listeners
Aug 4, 2026
Merged

Expose erldns:stop_listeners/0#363
NelsonVides merged 1 commit into
mainfrom
feat/stop-listeners

Conversation

@NelsonVides

Copy link
Copy Markdown
Contributor

The mirror of start_listeners/0: an embedding application that defers the listeners at boot (autostart_listeners=false) until its own resources are up has no way to close them again before those resources are torn down, so a query served during shutdown can reach a pipeline stage whose ETS tables have already died with their owner.

🔍 QA

N/A

📋 Deployment Pre/Post tasks

N/A

:shipit: Deployment Verification

N/A

The mirror of start_listeners/0: an embedding application that defers
the listeners at boot (autostart_listeners=false) until its own
resources are up has no way to close them again before those resources
are torn down, so a query served during shutdown can reach a pipeline
stage whose ETS tables have already died with their owner.

stop_listeners/0 terminates the erldns_listeners child, keeping its
spec, and start_listeners/0 now falls back to restart_child/2 when the
spec is present, so the pair is symmetric.
@NelsonVides NelsonVides self-assigned this Aug 4, 2026
@NelsonVides NelsonVides added the enhancement New feature, enhancement or code changes, not related to defects label Aug 4, 2026
@NelsonVides
NelsonVides merged commit 0026e81 into main Aug 4, 2026
11 checks passed
@NelsonVides
NelsonVides deleted the feat/stop-listeners branch August 4, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, enhancement or code changes, not related to defects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant