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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user