Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-812

support asynchronous mode for sftp subsystem

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 2.0.0
    • Labels:
    • Environment:
      java1.8, linux

      Description

      I used SSHD as a middleman between client and target sftp server.

      I found that, when filezilla client directly connect to the target sftp server, it transfers fast. When filezilla client connect to the middleman, it transfers slow.

      I analyzed the source code of org.apache.sshd.server.subsystem.sftp.SftpSubsystem#doRead, and I found it behaves like block mode, and client's other SSH_FXP_READ request blocked in the same thread.

       

      my middleman code:

       Main.java

       

        Attachments

        1. doRead.png
          29 kB
          Zhenliang Su
        2. Main.java
          3 kB
          Zhenliang Su

          Issue Links

            Activity

              People

              • Assignee:
                gnt Guillaume Nodet
                Reporter:
                smoking Zhenliang Su
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: