Skip to content

Commit

Permalink
fix allow_reuse_address usage (keras-team#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickiepark authored Jun 11, 2020
1 parent 5f44850 commit 6d27739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,11 @@ def make(self):

def serve(self):
os.chdir(self.site_dir)
socketserver.ThreadingTCPServer.allow_reuse_address = True
server = socketserver.ThreadingTCPServer(
("", 8000), http.server.SimpleHTTPRequestHandler
)
server.daemon_threads = True
server.allow_reuse_address = True

def signal_handler(signal, frame):
try:
Expand Down

0 comments on commit 6d27739

Please sign in to comment.