I have a fastapi project needs to connect to a rPyc server.
Since I need to start the rPyc server before I start the fastapi project, how could I know if the rPyc server is already successfully prepared from my fastapi end?
Any suggestion?
I have checked the Documentation about the ThreadedServer
, except knowing start()
function is blocking, I didn't find anything useful.
Now what I write in server:
t=ThreadedServer(Api,hostname,port)
t.start()
What I am doing on client is just a simple connect without any other "detect-behavior":
conn=rpyc.connect(server_addr, server_port)