尝试解决“[Errno 98] Address already in use”的错误
This commit is contained in:
parent
73c3cf8f8c
commit
0708bfbd22
@ -350,7 +350,7 @@ CCID:{get_ccid(self.request)}
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# load_cache
|
# load_cache
|
||||||
cache = load_cache()
|
cache = load_cache()
|
||||||
|
socketserver.TCPServer.allow_reuse_address = True
|
||||||
server = socketserver.ThreadingTCPServer(("", 7222), MyServer)
|
server = socketserver.ThreadingTCPServer(("", 7222), MyServer)
|
||||||
add_timestamp()
|
add_timestamp()
|
||||||
print("服务端初始化成功。", server.server_address)
|
print("服务端初始化成功。", server.server_address)
|
||||||
|
Loading…
Reference in New Issue
Block a user