LiQingFeng7 commented on issue #584:
URL: https://github.com/apache/mina-sshd/issues/584#issuecomment-2298223072

   ### precondition
   This is one of my sample code:
   [sshtest.zip](https://github.com/user-attachments/files/16671055/sshtest.zip)
   
   This is my sftp server configuration and I added a custom fileSystem and 
FileSubSystem
   
![17241400592348](https://github.com/user-attachments/assets/3cb24edc-23fd-4d7b-9958-edd9d530354b)
   
   I overwrote the CreateFileSystem() method of the custom 
SftpFileSystemFactory so that I could use this sftp server to connect to other 
linux machines and connect their file systems
   
![17241401646827](https://github.com/user-attachments/assets/b4ef8d5f-2b92-4656-9033-7095163a4c60)
   
![17241403468425](https://github.com/user-attachments/assets/e59f23d9-a97c-414e-bf05-cde5986bff11)
   
![image](https://github.com/user-attachments/assets/1dbd0d02-a538-4032-a46f-208afa8dcbc0)
   
   ### phenomenon
   When I use the sftp server to connect to the file system of the target 
machine, I use the put or ls command to upload files and view the files in the 
current directory.
   
   Then I compared using sftpclient.write(), which is about 1-2 times slower
   
![image](https://github.com/user-attachments/assets/60b9dd1a-1a9c-4b3c-8d3d-932fad30a937)
   
   Then I looked at the method time using the performance observation tool and 
found that the sftpSubSystem's doWrite() method did not aggregate sftp data for 
sending like the internalTransfer() method in the SftpOutputStreamAsync class.
   
![17240471215166](https://github.com/user-attachments/assets/4152768b-a0c8-407e-b438-4ea5db11536d)
   
   ### problem
   Then I used version 2.14.0 natively and the effect was the same, which I 
assumed was due to the differences found above. I would like to ask is it 
possible for SftpSubSystem to implement the same processing as the 
SftpOutputStreamAsync class?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to