Skip to content

Clean up challenge material when a solve is cancelled - #17

Merged
Shine-neko merged 2 commits into
mainfrom
feat/cleanup-on-cancel
Oct 19, 2026
Merged

Shine-neko merged 2 commits into
mainfrom
feat/cleanup-on-cancel

Conversation

@Shine-neko

Copy link
Copy Markdown
Contributor

Dns01Solver and TlsAlpn01Solver now track what they have put in place with a guard. If the solve_and_finalize future is dropped before completing (a caller-side timeout, select!, shutdown), the guard tears down the remaining TXT records or challenge certificates from a task spawned on the current Tokio runtime. Cleanup stays best-effort: the spawned task does not run if the runtime shuts down first.

Breaking change: the provider and responder type parameters now require 'static, since the solvers hold them in an Arc shared with the cleanup task. The new signatures are otherwise unchanged.

@Shine-neko
Shine-neko merged commit 4db469a into main Oct 19, 2026
5 checks passed
@Shine-neko
Shine-neko deleted the feat/cleanup-on-cancel branch October 19, 2026 10:18
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