Problem
The server runtime currently uses tokio_util::TaskTracker for spawning and managing worker tasks. While functional, tokio::task::JoinSet is a more modern Tokio pattern that could streamline shutdown handling and provide better integration with current Tokio idioms.
Suggested Solution
Evaluate replacing TaskTracker with tokio::task::JoinSet for managing worker tasks. This could simplify the shutdown logic and align with current Tokio best practices for task management.
Context
Identified during code review of PR #262: #262
Issue: #276
Files Affected
src/server/runtime.rs
src/server/connection.rs
Related Issues
Problem
The server runtime currently uses
tokio_util::TaskTrackerfor spawning and managing worker tasks. While functional,tokio::task::JoinSetis a more modern Tokio pattern that could streamline shutdown handling and provide better integration with current Tokio idioms.Suggested Solution
Evaluate replacing
TaskTrackerwithtokio::task::JoinSetfor managing worker tasks. This could simplify the shutdown logic and align with current Tokio best practices for task management.Context
Identified during code review of PR #262: #262
Issue: #276
Files Affected
src/server/runtime.rssrc/server/connection.rsRelated Issues