Skip to content

Conversation

@coreyja
Copy link
Owner

@coreyja coreyja commented Mar 3, 2025

Implements zero-downtime reloading during development using systemfd to keep the socket open while code recompiles. This allows:

  1. The socket to remain open during code changes
  2. The old version to continue serving requests while compiling
  3. A smooth transition to the new version once compiled

🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]

Implements zero-downtime reloading during development using systemfd
to keep the socket open while code recompiles. This allows:

1. The socket to remain open during code changes
2. The old version to continue serving requests while compiling
3. A smooth transition to the new version once compiled

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
- Remove unsafe code from socket handling
- Replace listenfd with socket2 for socket reuse
- Implement socket reuse with reuse_address and reuse_port flags
- Fix compilation issues and remove unsafe code

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
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.

Local Dev should hold onto open port while recompiling

2 participants