[ https://issues.apache.org/jira/browse/SSHD-812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16444550#comment-16444550 ]
Goldstein Lyor commented on SSHD-812: ------------------------------------- [~gnt] great work - I am getting though quite frequent intermittent test failures when running it via the Netty I/O factory. The strange thing is this. If I run {{mvn clean install}} only on the _sshd-sftp_ artifact it is usually successful. However, if it runs as part of a general {{mvn clean install}} it fails much more often - and always when run with the Netty I/O factory. I cannot tell if this is because of the Netty factory or the async. mode. I am inclined to believe some kind of race condition, but cannot put my finger on it yet - like I said, it is intermittent, but if running {{mvn clean install -Ptest-netty}} on _sshf-sftp_ it seems to fail most frequently. > support asynchronous mode for sftp subsystem > -------------------------------------------- > > Key: SSHD-812 > URL: https://issues.apache.org/jira/browse/SSHD-812 > Project: MINA SSHD > Issue Type: New Feature > Affects Versions: 1.7.0 > Environment: java1.8, linux > Reporter: Zhenliang Su > Assignee: Guillaume Nodet > Priority: Minor > Labels: asynchronous, sftp > Fix For: 2.0.0 > > Attachments: Main.java, doRead.png > > > 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] > -- This message was sent by Atlassian JIRA (v7.6.3#76005)