Skip to content

Conversation

@ecbadeaux
Copy link
Contributor

@ecbadeaux ecbadeaux commented Aug 13, 2025

Summary

Improved UDP and UDS writer reliability with automatic reconnection and retry logic.

Key Changes

  • Fresh Socket Creation: Each reconnection creates a new boost socket object to avoid stale state
  • Retry Logic: 3-attempt retry mechanism for failed send operations
  • Better Error Handling: Enhanced logging with detailed error messages
  • New Unit Test: Adds unit test for reconnection if SpectatorD starts/stops

This makes spectator-cpp more resilient to network issues in production.

@ecbadeaux ecbadeaux marked this pull request as ready for review August 14, 2025 18:25
@ecbadeaux ecbadeaux merged commit 1e69c44 into main Aug 14, 2025
1 check passed
@ecbadeaux ecbadeaux deleted the feature/reconnect-fix branch August 14, 2025 18:25
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.

2 participants