fix: Allow address reuse in server.py
This commit is contained in:
@@ -32,6 +32,7 @@ class QuietSystemInfoHandler(SystemInfoHandler):
|
|||||||
if self.path != '/stats':
|
if self.path != '/stats':
|
||||||
super().log_message(format, *args)
|
super().log_message(format, *args)
|
||||||
|
|
||||||
|
socketserver.TCPServer.allow_reuse_address = True
|
||||||
with socketserver.TCPServer(('', PORT), QuietSystemInfoHandler) as httpd:
|
with socketserver.TCPServer(('', PORT), QuietSystemInfoHandler) as httpd:
|
||||||
print("serving at port", PORT)
|
print("serving at port", PORT)
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user