Skip to content

Commit

Permalink
close accept socket in child process
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed May 20, 2024
1 parent 12770cb commit 51768d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cads_mars_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def do_HEAD(self):
self.send_response(204)
self.end_headers()

def handle(self) -> None:
def handle(self):
"""
Close the accept socket so the main server can restart
without a "Address already in use" error.
Expand Down

0 comments on commit 51768d7

Please sign in to comment.