You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be a dirty workaround, but it might be possible to set the timeout this way: from fabric2 import Connection c = Connection(host="1.2.3.4", user="user", connect_kwargs={"key_filename": "my_key"} c.run("echo hey") c.transport.set_keepalive(<keepalive>)
I didn't find a different way to set keepalive with fabric2 at the moment ):
@cr-liadsh thank you for your workaround!
I was stuck for weeks and couldn't figure out why my commands were hanging. Setting the keep alive allowed me to get the command's result.
The port of Fabric v1's keepalive to Fabric v2 is still pending, so I will keep using your fix.
v1 had a simple integer
env.keepalive
/--keepalive
that got turned intoclient.get_transport().set_keepalive(xxx)
; v2 has not ported that over yet.The text was updated successfully, but these errors were encountered: