This PR fixes the agent tailscale server connection reestablishing. The server now performs a health check every 5 seconds and, if it fails, attempts to reconnect. The reconnection process involves getting a new network key and initializing a new tailscale connection.
[ ] This change requires a documentation update
[ ] I have made corresponding changes to the documentation
Related Issue(s)
Closes #522
Notes
To test this PR:
Create a workspace
Stop the Daytona Server for more than 5 minutes
Start the Daytona Server
Attempt to connect to the workspace project with daytona ssh
Agent Tailscale Server Reestablish Connection
Description
This PR fixes the agent tailscale server connection reestablishing. The server now performs a health check every 5 seconds and, if it fails, attempts to reconnect. The reconnection process involves getting a new network key and initializing a new tailscale connection.
Related Issue(s)
Closes #522
Notes
To test this PR:
daytona ssh