Commit 15d4796a authored by Leigh Stoller's avatar Leigh Stoller

Set REUSEADDR on the socket, so that if a child is still running, we can

restart the main server.
parent 128efaa9
#!/usr/local/bin/python
#
# Copyright (c) 2005-2017 University of Utah and the Flux Group.
# Copyright (c) 2005-2018 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -268,6 +268,9 @@ class MyServer(SSL.ForkingSSLServer, SimpleXMLRPCDispatcher):
ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 16)
ctx.set_allow_unknown_ca(0)
#ctx.set_info_callback()
# Oh, so glad this is built into TCPServer.
self.allow_reuse_address = True
dargs = (self,)
if sys.version_info[0] >= 2 and sys.version_info[1] >= 5:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment