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 UDP environment and example to the token lifecycle #2448
Make the UDP test Environment and the udp_only_public_tracker example use the token-aware UDP server lifecycle. Environment::stop() cancels and joins every task it owns (the receive loop and three event listeners) instead of aborting the listeners. The example maps SIGINT and Unix SIGTERM to Environment::stop(); the UDP library stays free of direct OS-signal subscriptions.
Acceptance criteria
AC1: Environment starts the UDP server through start_with_cancellation.
AC2: Environment::stop() cancels the environment token and joins the receive loop and the three event listeners; it never calls abort().
AC3: stop() panics with a message naming each failing task, after joining every owned task, and keeps its current signature.
AC4: A stopped environment can be started again and serves requests.
AC5: A failed start leaves no event listener running.
AC6: The health-check API contract tests pass without using the environment's server field to stop the UDP tracker.
AC7: udp_only_public_tracker stops gracefully on SIGINT and on Unix SIGTERM and exits with code 0.
AC8: No UDP library module subscribes to OS signals directly; the legacy Server::start/stop API still compiles, its tests pass, and it keeps its indirect subscription until SI-19.
AC9: The shutdown task inventory reflects 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/2448-1488-si-17-migrate-standalone-udp-environment/ISSUE.md (added by the spec-only PR).
Activity
docs(issues): [torrust#1488] add specs for SI-17, SI-23, and SI-24 (t…
docs(issues): [torrust#1488] add specs for SI-17, SI-23, and SI-24 (t…
docs(issues): [torrust#1488] add specs for SI-17, SI-23, and SI-24 (t…
Merge #2451: docs(issues): add specs for shutdown SI-17, SI-23, and S…
refactor(udp-server): [torrust#2448] migrate the UDP test environment…
feat(udp-server): [torrust#2448] stop the UDP example on SIGINT or SI…
docs(shutdown): [torrust#2448] record the migrated UDP environment in…
docs(issues): [torrust#2448] record SI-17 acceptance review and verif…
test(udp-server): [torrust#2448] tighten environment test assertions …
docs(issues): [torrust#2448] record the Task Reviewer report for SI-17
fix(udp-server): [torrust#2448] cancel the UDP environment's tasks wh…
docs(issues): [torrust#2448] name reviewed commits by subject in the …
6 remaining items
docs(issues): [torrust#2448] record the Task Reviewer report for SI-17
fix(udp-server): [torrust#2448] cancel the UDP environment's tasks wh…
docs(issues): [torrust#2448] name reviewed commits by subject in the …
docs(issues): [torrust#2448] mark SI-17 verification done and log the…
Merge torrust#2459: feat(udp-server): [torrust#2448] migrate the stan…
chore(issues): archive closed issue torrust#2448 spec
docs(issues): [torrust#2448] correct the archive entry's torrust#2459 …
chore(issues): archive closed issue torrust#2448 spec
docs(issues): [torrust#2448] correct the archive entry's torrust#2459 …
Merge #2465: chore(issues): archive closed issue #2448 spec
Merge #2478: chore(issues): archive closed issue #2458 spec to docs/i…
Merge #2483: docs(issues): add the #2471 spec and refresh the SI-22, …
Merge #2633: chore(issues): [#2410] close sub-EPIC SI-22 and archive …
docs(issues): [torrust#1488] address review of PR torrust#2848