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
Invalidate SFTP connection cache when disconnecting from SSH
This fixes a bug where we would keep a stale connection in the cache
such as in the following example:
```
files.put(src='test.sh',
dest='/tmp/test_before.sh',
force=True)
server.reboot(delay=20, interval=5, reboot_timeout=600)
files.put(src='test.sh',
dest='/tmp/spinner.sh',
force=True)
```
The first `files.put` caches an SFTP connection that gets closed
during the reboot, and the second `files.put` will try to use the
memoized connection which is now invalid.
0 commit comments