Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于rpc通信超时问题,经常运行hrpc与PocoService.apk通信的超时卡主。 #6

Open
xzhacker123 opened this issue May 11, 2020 · 0 comments

Comments

@xzhacker123
Copy link

而且一般是卡在hrpc/object_proxy.py对象析构的时候

def __del__(self):
        # 代理对象析构时,请求远程对象也析构,并不需要等待返回
        if self._is_intermediate_uri__:
            action = (('del', ()), )
            self._client__.evaluate(RpcObjectProxy(self._uri__, self._client__, action), wait_for_response=False)

请求报文:

{"id": "", "uri": "[Lcom.netease.open.libpoco.sdk.AbstractNode;@184e8ec(61762182-3f08-4bbd-b836-49eddbe95f46)", "method": [["del", []]], "session_id": "3e6b0bdb-90a6-4dab-892c-3f3bac49f904"}

Exception ignored in: <function RpcObjectProxy.del at 0x1234687a0>
Traceback (most recent call last):
File "/Users/xs/PycharmProjects/airtest/hrpc/object_proxy.py", line 114, in del
self.client_.evaluate(RpcObjectProxy(self.uri_, self.client_, action), wait_for_response=False)
File "/Users/xs/PycharmProjects/airtest/hrpc/client.py", line 64, in evaluate
self.transport.send({'id': reqid, 'uri': obj_proxy.uri_, 'method': obj_proxy.invocation_path_})
File "/Users/xs/PycharmProjects/airtest/hrpc/transport/http.py", line 31, in send
raise TransportDisconnected(e)
hrpc.exceptions.TransportDisconnected: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant