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

Otto Frost commented on SSHD-120:
---------------------------------

The apache sshd SFTP daemon should be fixed  so it keeps the SFTP packet size 
below the
recommended 34000 bytes. The difference in behaviour between OpenSSH
SFTP and MindTerm SFTP is due to the fact the OpenSSH allows a max SFTP
packet size of 256KBytes while MindTerm SFTP has 34000 bytes.

If you want to get the same behaviour with MindTerm as with OpenSSH, change
com.mindbright.ssh2.SSH2SFTP:DATA_BUFFER_SIZE to 256*1024. But the correct
fix is to make sure the SFTP daemon never sends larger packets than 
34000 bytes -
you will still need to implement a limit since OpenSSH SFTP will refuse 
to accepts
directory listings which results in packets > 256KBytes...

The Apache SSH server is also broken in that it sends SSH_MSG_CHANNEL_EOF
SSH_MSG_CHANNEL_REQUEST("exit-status") after SSH_MSG_CHANNEL_CLOSE has
been sent.


> list 1500 files in one directory not working for mindterm sftp client
> ---------------------------------------------------------------------
>
>                 Key: SSHD-120
>                 URL: https://issues.apache.org/jira/browse/SSHD-120
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.5.0
>         Environment: windows xp professional sun jre 1.5
> windows 2003 server sun jre 1.5
> mindterm 3.4 ftp2sftp
>            Reporter: Otto Frost
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> mindterm is used in ftp2sftp mode
> trying to list files in a directory "manyfiles" with  > 1500 files doesn't 
> work on the "apache mina sshd"
> when doing the following operation it doesn't work. In the "manyfiles" dir 
> there are >1500 files.
> mindterm can list files in a directory with < 50 files
> mindterm can list files on a opensshd server with a directory with > 1500 
> files, therefore we think the error is in the "apache mina sshd" and not in 
> mindterm, at least there is some incompatibility...
> ftp> o localhost 2120
> Connected to WKE198515.u-dom1.u-ssi.net.
> 220 FTPToSFTPProxy use 'ssh2-user@ssh2-host[:port]' as your username or 
> ;ssh2-us
> er;keyfile;10@ssh2-host[:port]
> User (WKE198515.u-dom1.u-ssi.net:(none)): a@localhost:2222
> 331 Password required for a@localhost:2222.
> Password:
> 230 User a@localhost:2222 logged in.
> ftp> cd ../../../tst/manyfiles
> 250 CWD command successful.
> ftp> ls
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for nlst.
> Connection closed by remote host.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to