接收数据上的Pyro4随机超时错误

时间:2019-05-13 14:48:25

标签: python timeoutexception pyro4

我已经在使用Pyro4的两台PC之间建立了连接,大多数情况下一切都可以无缝运行,但是有时我会出现如下所示的随机TimeoutError:

    result = self.pyro_proxes[pyro_proxy_name].run_on_pool_controller(*args, **kwargs)
      File "/opt/ute/python/lib/python2.7/site-packages/Pyro4/core.py", line 171, in __call__
return self.__send(self.__name, args, kwargs)
      File "/opt/ute/python/lib/python2.7/site-packages/Pyro4/core.py", line 410, in _pyroInvoke
        msg = message.Message.recv(self._pyroConnection, [message.MSG_RESULT], hmac_key=self._pyroHmacKey)
      File "/opt/ute/python/lib/python2.7/site-packages/Pyro4/message.py", line 168, in recv
        msg = cls.from_header(connection.recv(cls.header_size))
      File "/opt/ute/python/lib/python2.7/site-packages/Pyro4/socketutil.py", line 438, in recv
return receiveData(self.sock, size)
      File "/opt/ute/python/lib/python2.7/site-packages/Pyro4/socketutil.py", line 149, in receiveData
        raise TimeoutError("receiving: timeout")

起初我坚信这可能是一些与网络相关的问题,但是我在后台检查了ping进程,并且PC之间的连接永远不会丢失。我在Pyro文档中找不到任何有关它的东西。

0 个答案:

没有答案