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
Linux 5.4.269-1.el8.elrepo.x86_64 x86_64 GNU/Linux
If you're connecting as a client, which SSH server are you connecting to?
openssh
If you're using paramiko as part of another tool, which tool/version?
No response
What are you trying to do with paramiko?
hi! Thanks a lot for the library, it's very handy
I was experimenting with prefetch, and I got very good results compared to the default .get(file) version, but when I deployed my code to the production, I noticed this weird exception in my logs:
2024-04-04 18:50:21,817 INFO luigi-interface.dps.get_logger segments_download file download is complete
self.run()
File "/usr/local/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/app/.venv/lib/python3.10/site-packages/paramiko/sftp_file.py", line 561, in _prefetch_thread
num = self.sftp._async_request(
File "/app/.venv/lib/python3.10/site-packages/paramiko/sftp_client.py", line 881, in _async_request
self._send_packet(t, msg)
File "/app/.venv/lib/python3.10/site-packages/paramiko/sftp.py", line 209, in _send_packet
This happens when I closed the connection to the sftp server. My guess is there is a separate thread for the prefetch mechanism, and it's not closed even after I called the paramiko.sftp_client.SFTPClient.close method. Is there a way how I can wait for such a tread to finish?
How are you trying to do it, and what's happening instead?
Are you using paramiko as a client or server?
Client
What feature(s) aren't working right?
SFTP
What version(s) of paramiko are you using?
3.4.0
What version(s) of Python are you using?
3.11.8
What operating system and version are you using?
Linux 5.4.269-1.el8.elrepo.x86_64 x86_64 GNU/Linux
If you're connecting as a client, which SSH server are you connecting to?
openssh
If you're using paramiko as part of another tool, which tool/version?
No response
What are you trying to do with paramiko?
hi! Thanks a lot for the library, it's very handy
I was experimenting with prefetch, and I got very good results compared to the default
.get(file)
version, but when I deployed my code to the production, I noticed this weird exception in my logs:This happens when I closed the connection to the sftp server. My guess is there is a separate thread for the prefetch mechanism, and it's not closed even after I called the
paramiko.sftp_client.SFTPClient.close
method. Is there a way how I can wait for such a tread to finish?How are you trying to do it, and what's happening instead?
You may find my code here https://stackoverflow.com/a/78275652/2406992
Anything else?
Thank you in advance!
The text was updated successfully, but these errors were encountered: