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
I'm pretty new to Python and I'm currently working on a project that requires downloading large files from an sftp server on to my local machine. Right I'm getting a lot of server drops ( connection lost errors) Is it alright if I change the max_request_size to a value greater than 32768 in the sftp_file.py file if the sftp is capable of handling the size?
If you change that value in your local version of Paramiko, then ostensibly yes, it'll work OK provided the target server isn't one of the ones mentioned in the comment above that line.
If your question was whether we'd accept a patch making this value modifiable by client code, that's probably also a 'yes' :)
Is this issue still open? Changing MAX_REQUEST_SIZE is the only reliable way we have to get a 600 MB gpg encrypted zip file downloaded from an SFTP server that is throwing a 552 error and closing the connection. We are not running out of disk space locally!
Unfortunately, the 1024 setting slows down all our other transfers and we have been unable to find a happy medium. Being able to change this value client side would allow us to make the change only for the problematic file.
So far, though I have not seen a way to do this from the released version.
Updating here -- yep, @jwaggy, #1328 is open to resolve this, and it will get finalized and merged at some point.
For now, though, it's still on hold. For a while, bitprophet was working on dropping Python 2 and old 3.x, and now he's primarily focused on the major auth/key rework of #387 and #23. Noncritical bugfixes and features are ~completely on hold until he works his way through that.
I can't give a timeline, unfortunately - he only has so much time to dedicate to open source every week, and he has multiple projects to maintain in addition to paramiko.
Activity
bitprophet commentedon Feb 27, 2015
If you change that value in your local version of Paramiko, then ostensibly yes, it'll work OK provided the target server isn't one of the ones mentioned in the comment above that line.
If your question was whether we'd accept a patch making this value modifiable by client code, that's probably also a 'yes' :)
JudithAshworth commentedon Apr 12, 2021
Is this issue still open? Changing MAX_REQUEST_SIZE is the only reliable way we have to get a 600 MB gpg encrypted zip file downloaded from an SFTP server that is throwing a 552 error and closing the connection. We are not running out of disk space locally!
Unfortunately, the 1024 setting slows down all our other transfers and we have been unable to find a happy medium. Being able to change this value client side would allow us to make the change only for the problematic file.
So far, though I have not seen a way to do this from the released version.
jwaggy commentedon Jul 19, 2023
I would also like this to reduce the request size that is currently set. There is even a PR for it.
bskinn commentedon Aug 2, 2023
Updating here -- yep, @jwaggy, #1328 is open to resolve this, and it will get finalized and merged at some point.
For now, though, it's still on hold. For a while, bitprophet was working on dropping Python 2 and old 3.x, and now he's primarily focused on the major auth/key rework of #387 and #23. Noncritical bugfixes and features are ~completely on hold until he works his way through that.
I can't give a timeline, unfortunately - he only has so much time to dedicate to open source every week, and he has multiple projects to maintain in addition to paramiko.
We'll get there, though.