rest_rpc icon indicating copy to clipboard operation
rest_rpc copied to clipboard

如何停止服务端

Open ZHBHFUT opened this issue 6 months ago • 4 comments

需求:固定数量的客户端,每个客户端在退出时都远程调用stop函数,服务端接收到所有调用自动退出,而非阻塞在server.run()中。

目前是在调用线程中call exit()直接结束程序,但这样就没法做相应的后续清理工作。

ZHBHFUT avatar Aug 13 '24 12:08 ZHBHFUT