You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# file Server.py
import zerorpc
class Server(object):
def __init__(self):
pass
def add(self, a, b):
return a + b
if __name__ == "__main__":
s = zerorpc.Server(Server())
s.bind("tcp://127.0.0.1:9888")
s.run()
# file Server2.py
import zerorpc
class Server2(object):
def __init__(self):
pass
def mul(self, a, b):
return a * b
if __name__ == "__main__":
s = zerorpc.Server(Server2())
s.bind("tcp://127.0.0.1:9889")
s.run()
I constructed a rpc client in main process and connect to Server and then start a subprocess to connect to Server2. However, the rpc call was stucked.
I have two rpc server and the code is below
I constructed a rpc client in main process and connect to Server and then start a subprocess to connect to Server2. However, the rpc call was stucked.
When I start subprocess and then constructed client in main process, both calls sucess.
Python version: 3.6.8
zerorpc version: 0.6.1
The text was updated successfully, but these errors were encountered: