You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrate standalone HTTP environment and example to the token lifecycle #2412
Make the HTTP test Environment and the http_only_public_tracker example use the token-aware HTTP server lifecycle. Environment::stop() cancels and joins every task it owns (server, drain controller, statistics event listener) instead of aborting any of them. The example maps SIGINT and Unix SIGTERM to Environment::stop(); the HTTP library stays free of OS-signal subscriptions.
Acceptance criteria
AC1: Environment starts the HTTP server through the token-aware path, including when a custom health-check callback is injected.
AC2: Environment::stop() cancels the environment token and joins the server task, the drain controller, and the event listener; it never calls abort().
AC3: stop() panics with a message naming the failing task on any join error or drain timeout, and keeps its current signature.
AC4: A stopped environment can be started again and serves requests.
AC5: The health-check API contract tests pass without using the environment's server field to stop the HTTP tracker.
AC6: http_only_public_tracker stops gracefully on SIGINT and on Unix SIGTERM and exits with code 0.
AC7: No HTTP library module subscribes to OS signals; the legacy HttpServer::start/stop API still compiles and its tests pass.
AC8: The shutdown task inventory and feature documentation reflect the migration.
linter all exits with code 0
Relevant tests pass
Manual verification scenarios are executed and documented in issue-local manual-verification-evidence.md
Acceptance criteria are re-reviewed after implementation and reflect actual behavior
Specification: docs/issues/open/2412-1488-si-16-migrate-standalone-http-environment/ISSUE.md (added by the spec-only PR).
Activity
docs(issues): add specs for SI-22 shutdown event draining and related…
Merge #2421: docs(issues): add specs for SI-22 shutdown event drainin…
fix(axum-http-server): [torrust#2412] spawn the environment listener …
fix(axum-server): [torrust#2412] force-close connections when the tok…
docs(issues): [torrust#2412] correct the non-Unix CI claim and log th…
refactor(axum-http-server): [torrust#2412] address da2ce7 review code…
docs(issues): [torrust#2412] address da2ce7 review spec findings
docs(issues): [#2412] record the SI-16 baseline
feat(axum-http-server): [#2412] expose the token-aware start with an …
docs(axum-server): [#2412] note the drain polling cost and future opt…
feat(axum-http-server): [#2412] migrate the test environment to the t…
feat(axum-http-server): [#2412] stop the HTTP-only example on SIGINT …
2 remaining items
docs(issues): [#2412] record the acceptance criteria review
docs(issues): [#2412] record the first Task Reviewer report
refactor(axum-http-server): [#2412] address Task Reviewer code findings
docs(issues): [#2412] address Task Reviewer documentation findings
docs(issues): [#2412] record the passing review and pre-push checks
Merge torrust#2439: feat(axum-http-server): [torrust#2412] migrate th…
chore(issues): archive closed issue torrust#2412 spec
Merge #2443: chore(issues): archive closed issue #2412 spec
fix(issues): [torrust#2417] repair the archived spec's parent EPIC link
Merge #2459: feat(udp-server): [#2448] migrate the standalone UDP env…
Merge #2544: fix(axum-http-server): [#2471] stop the HTTP test enviro…
Merge #2633: chore(issues): [#2410] close sub-EPIC SI-22 and archive …
Merge #2669: docs(issues): [#2668] add issue specification for shutdo…
Merge #2686: chore(issues): archive closed issue #2668 spec to docs/i…