Skip to content

v2024.1.4

Choose a tag to compare

@github-actions github-actions released this 23 Jan 21:19
b7d3d3e

Changes

  • Raise RemoteConnectionError rater than OperationFailed in case of network issues (loss of connection, timeout, etc).
  • Automatically try to re-open SSH/SFTP connection on the next operation in case of network issues.
    Previously, the SSHFS object was stuck in error state, and any operations on file system, like openbin(), listdir(), etc. were failing indefinitely.
  • Fix a leak in SSH channels (paramiko.SFTPClient) when files are opened and closed subsequently over the same SSH socket (paramiko.SSHClient).
    Some SFTP servers limit a maximum number of SSH channels that can be opened over the same SSH socket, usually 10.
  • Raise IOError rather than FSError in file methods (read(), write(), seek()). Such methods can be called from the external code, where FSError is not catched.
    For example, when file-like object is passed to Apache mod_wsgi module, which streams the file.