How to get/config socket from Pyro Proxy

93 views Asked by At

I want to set socket.TCP_KEEPIDLE of a Pyro4 object for keeping heartbeat. Is there any way to do this? Or workaround is also welcome. Thanks in advance.

1

There are 1 answers

0
Irmen de Jong On

If you really want, you can get to the actual socket object in the Proxy via proxy._pyroConnection.sock but then you're using an internal API, so no guarantees that your code keeps working.