Hi, Adam
An error arises, when I call json rpc server by AsyncoreReactor. And I can call json rpc server successfully by a simple TCPReactor write by myself.
how can I call json Rpc by AsyncoreReactor correctly?

>>> address = ("127.0.0.1", 4044)
>>> clientsReactor = asyncoreReactor.AsyncoreReactor()
>>> reactor = TestClientWrapper(clientsReactor.createClient(address))
>>> jsonAPI = JsonRpcClient(reactor)
>>> jsonAPI.connect()
>>> jsonAPI.callMethod("Host.ping", [], 1, 10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/yajsonrpc/client.py", line 39, in callMethod
resp = self._transport.recv(timeout=timeout)
File "/usr/share/vdsm/tests/jsonRpcUtils.py", line 100, in recv
return self._queue.get(timeout=timeout)[1]
File "/usr/lib64/python2.7/Queue.py", line 176, in get
raise Empty
Queue.Empty


--
Sheldon Feng(冯少合)<shao...@linux.vnet.ibm.com>
IBM Linux Technology Center

_______________________________________________
vdsm-devel mailing list
vdsm-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-devel

Reply via email to