Hi John
The issue I have is that this code doesn't necessarily run on a Universe server, hence using uopy to connect from an external machine.
On the uopy side we connect to a Universe server, run some commands, manage files, but also we do a lot of client-side processing. So, on servers with small timeouts we can find ourselves with a dead session.
The issue was non-existen using UVIC32 code, because if a session was closed we could reopen it on the spot. But, with uopy, this is not as easy as the connections are done inside a python with block, so I have to exit that block and recreate a new session object:
with uopy.connect(host=..., user=..., password=..., account=...) as session:
# here my session is active
...
if not session.check_health();
# what can I do?