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

Thomas Wolf commented on SSHD-1312:
-----------------------------------

It's configured on the server side. If you want your client to work with all 
kinds of servers, you cannot rely on any particular value. In Apache MINA sshd, 
it can be configured via {{SftpModuleProperties.MAX_READDATA_PACKET_LENGTH}}. 
The default value of 63kB is what you were seeing. It is a bit low; we are 
considering increasing it in a future version.

> using org.apache.sshd.sftp.client.SftpClient#read the Number of read bytes
> --------------------------------------------------------------------------
>
>                 Key: SSHD-1312
>                 URL: https://issues.apache.org/jira/browse/SSHD-1312
>             Project: MINA SSHD
>          Issue Type: Question
>    Affects Versions: 2.8.0
>            Reporter: ppppp2
>            Priority: Major
>
> Hi Team,
> I'm using this api:
> org.apache.sshd.sftp.client.SftpClient#read(org.apache.sshd.sftp.client.SftpClient.Handle,
>  long, byte[])
> my code is :
> byte[] buff = new byte[65536];
> readLen = sftp.read(handle, 0, buff))
> my file length is bigger than 65536,
> but the readLen result is 64512,
> I want to know what would affect the read length.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to