Visitar URL original
Maximum load of libssh2 data transmission · Issue #1490 · libssh2/libssh2 · GitHub
Skip to content

Maximum load of libssh2 data transmission #1490

Open

Description

@fightingLKH

Hello, I found that the transfer speed is very slow when using the SCP interface of libssh2 to upload files. When I opened the source code, I found that the maximum data transfer speed of libssh2 cannot exceed 32K. Is there a way to set the data transfer size to exceed 32K or a faster transfer speed.

Activity

  1. vivek4434 commented on Jul 16, 2025

    @vivek4434

    I have solved this problem using -

    read the file as bytes,
    define max concurrent connection threshold.
    divide the file into chunks.
    create multiple connection (depends on chunk size, ssh server connection limit).
    Make sure chuck have ordered name convention.
    transfer chunk in parallel, independently.
    use cat/someother command to concatenate the data.
    verify md5hash

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