尝试解决“[Errno 98] Address already in use”的错误

This commit is contained in:
murmur 2023-03-19 17:57:35 +08:00
parent 73c3cf8f8c
commit 0708bfbd22

View File

@ -350,7 +350,7 @@ CCID:{get_ccid(self.request)}
if __name__ == "__main__":
# load_cache
cache = load_cache()
socketserver.TCPServer.allow_reuse_address = True
server = socketserver.ThreadingTCPServer(("", 7222), MyServer)
add_timestamp()
print("服务端初始化成功。", server.server_address)