I've got a connection setup between two PCs using Pyro4, most of the time everything is working seamlessly, however sometimes I can get random TimeoutError like this:

    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")

At first I tought this might be some network related issues, however I checked with ping process in background, and connection is never lost between PCs. I can't really find anything in Pyro documentation about it.

0 Answers