fix(wolf-pair): set allow_reuse_address so restarts don't hit EADDRINUSE

HTTPServer.allow_reuse_address must be set before __init__ calls
server_bind(). Setting it as a class attribute before instantiation
is the correct pattern.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8ckUJQtj1pH8jtAddBDZs
This commit is contained in:
Claude
2026-06-20 03:29:58 +00:00
parent 63ee2e8aff
commit 88ac2ac06a
+1
View File
@@ -384,6 +384,7 @@ class Handler(BaseHTTPRequestHandler):
if __name__ == '__main__':
HTTPServer.allow_reuse_address = True
HTTPServer(('0.0.0.0', 8090), Handler).serve_forever()
PYEOF
log_success "server.py written"