Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The SSL must be disabled to take an advantage of Java NIO zero-copy file transmission using FileChannel#transferTo method. If we need to use SSL the FileChunk approach needs to be implemented in additionfile must be splitted on chunks the same way to send them over the socket channel with ByteBuffer. As the SSL engine generally needs a direct ByteBuffer to do encryption we can't avoid copying buffer payload from the OS level to the application level

...