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
When recursively downloading a directory from an SFTP connection, the download will always hang after a certain number of files (always somewhere around 60).
The number of files that are downloaded before hanging is always the same for the same directory. I have checked this by having it skip some files, to test if it was the specific file or the number of files.
With a few different parent directories I tested with, it would hang on file 59, 60, 61 and 66, depending on the directory. It is always the same count for the same directory.
When interrupting the program in this hung state, this is the stack trace:
Traceback (most recent call last):
File "test_ftp.py", line 41, in <module>
para()
File "test_ftp.py", line 33, in para
recursive_download("plugins/jetpack", "/home/s/Desktop/wordpress-seo")
File "test_ftp.py", line 31, in recursive_download
ftp.get(new_ftp_path, new_path)
File "/usr/local/lib/python3.4/dist-packages/paramiko/sftp_client.py", line 720, in get
size = self.getfo(remotepath, fl, callback)
File "/usr/local/lib/python3.4/dist-packages/paramiko/sftp_client.py", line 688, in getfo
with self.open(remotepath, 'rb') as fr:
File "/usr/local/lib/python3.4/dist-packages/paramiko/sftp_client.py", line 327, in open
t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
File "/usr/local/lib/python3.4/dist-packages/paramiko/sftp_client.py", line 728, in _request
num = self._async_request(type(None), t, *arg)
File "/usr/local/lib/python3.4/dist-packages/paramiko/sftp_client.py", line 750, in _async_request
self._send_packet(t, msg)
File "/usr/local/lib/python3.4/dist-packages/paramiko/sftp.py", line 170, in _send_packet
self._write_all(out)
File "/usr/local/lib/python3.4/dist-packages/paramiko/sftp.py", line 133, in _write_all
n = self.sock.send(out)
File "/usr/local/lib/python3.4/dist-packages/paramiko/channel.py", line 698, in send
return self._send(s, m)
File "/usr/local/lib/python3.4/dist-packages/paramiko/channel.py", line 1059, in _send
size = self._wait_for_send_window(size)
File "/usr/local/lib/python3.4/dist-packages/paramiko/channel.py", line 1174, in _wait_for_send_window
self.out_buffer_cv.wait(timeout)
File "/usr/lib/python3.4/threading.py", line 290, in wait
waiter.acquire()
KeyboardInterrupt
The text was updated successfully, but these errors were encountered:
I'm trying to use paramiko for business purposes, and this is stopping us from being able to rely on it. Is there anything I can do to help this along?
When recursively downloading a directory from an SFTP connection, the download will always hang after a certain number of files (always somewhere around 60).
The number of files that are downloaded before hanging is always the same for the same directory. I have checked this by having it skip some files, to test if it was the specific file or the number of files.
With a few different parent directories I tested with, it would hang on file 59, 60, 61 and 66, depending on the directory. It is always the same count for the same directory.
When interrupting the program in this hung state, this is the stack trace:
The text was updated successfully, but these errors were encountered: