[ 
https://issues.apache.org/jira/browse/SSHD-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17088652#comment-17088652
 ] 

Subramaniajeeva commented on SSHD-979:
--------------------------------------

[~gnodet]    

By x ms latency you mean the time for the packet to reach from source to 
destination I presume.

>From the numbers I could see the higher the latency, higher the gain by this 
>fix.

As it is in commons, it is applicable for both client and server I assume.

Last year, I had a big performance problem with sftp client while transferring 
the file with code something like this:

 
{code:java}
val ip: InputStream = sftpClient1.get(srcPath, readBufferSize)
val op: OutputStream = sftpClient2.put(destPath, writeBufferSize)

val bytesTransferred = IOUtils.copy(ip, op, transferBufferSize)
ip.close()
op.close()
{code}
 

{color:#172b4d}Unfortunately, I had to switch to Jsch client to fix the issue, 
as it was timesensitive.{color}

{color:#172b4d}In terms of numbers, transferring 1G was taking 2hrs with the 
code mentioned above. When used similar code with jsch, I was able to transfer 
with 1.1 minute.{color}

{color:#172b4d}JSch has absolutely no logs and error messages sucks. I really 
want to go back and use Mina sftp client.{color}

{color:#172b4d}Please let me know where I missed.{color}

> Rework SFTP streams so that we can send or receive as much data as possible
> ---------------------------------------------------------------------------
>
>                 Key: SSHD-979
>                 URL: https://issues.apache.org/jira/browse/SSHD-979
>             Project: MINA SSHD
>          Issue Type: Improvement
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>             Fix For: 2.5.0
>
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> The streams use a synchronous InputStream or OutputStream on the channel 
> which blocks for the server response whenever flush is called.  This cause a 
> huge drop of the transfer rate compared to other SFTP implementations.
>  
> This work is sponsored by Buddy [https://buddy.works/]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to