Skip to content

Refactor agent core networking - #207

Open
playit-coding-agent wants to merge 1 commit into
masterfrom
t3code/refactor-core-networking
Open

playit-coding-agent wants to merge 1 commit into
masterfrom
t3code/refactor-core-networking

Conversation

@playit-coding-agent

Copy link
Copy Markdown
Collaborator

Summary

  • Separate protocol encoding, control state, packet I/O, and forwarding responsibilities.
  • Improve control session expiry, request matching, authentication, and reconnection handling.
  • Refactor TCP and UDP lifecycle management, cancellation, capacity limits, idle cleanup, and flow routing.
  • Add packet safety improvements, protocol bounds checks, integration coverage, and refactor documentation.

Testing

  • cargo test -p playit-agent-core -p playit-agent-proto --all-targets
  • cargo test -p playit-agent-core --test udp_tunnel_integration udp_tunnel_stress_reports_bitrate_by_packet_size -- --ignored --nocapture
  • cargo check --workspace --all-targets
  • cargo clippy -p playit-agent-core -p playit-agent-proto --all-targets
  • Local UDP stress test passed 100,000 packets per payload size in each direction for 32, 128, 512, and 1,300-byte payloads.

- Separate control, transport, TCP, and UDP responsibilities
- Harden session timing, packet handling, cancellation, and flow tracking
- Add regression coverage and refactor documentation
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