tomaswolf commented on issue #485:

   Thank you for this test case. It appears that there is indeed something 
wrong with the `FileChannel`s. The following is in my tests much faster (and on 
par with OpenSSH or Jsch):
   SftpClient sftpClient = 
   try (OutputStream out = sftpClient.write("largeFile")) {
       Files.copy(new File(largeFile).toPath(), out);
   or also
   try (SftpFileSystem fs = 
SftpClientFactory.instance().createSftpFileSystem(session)) {
     Path remoteFile = fs.getPath("largeFile");
     Files.copy(new File(largeFile).toPath(), remoteFile, 
   With the channels and `transferTo` I see uploads (to localhost, so no 
network latency) about 4 times (400%) slower, and downloads about 25% slower. 
We'll have to investigate what's going on there...
   What is the JSCHED library?

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:

For queries about this service, please contact Infrastructure at:

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to