Skip to content

Can the max_request_size be changed? #494

Open

Description

@rsheshadri

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?

Activity

  1. bitprophet commented on Feb 27, 2015

    @bitprophet
    Member

    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' :)

  2. JudithAshworth commented on Apr 12, 2021

    @JudithAshworth

    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.

  3. jwaggy commented on Jul 19, 2023

    @jwaggy

    I would also like this to reduce the request size that is currently set. There is even a PR for it.

  4. bskinn commented on Aug 2, 2023

    @bskinn
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions