eclipse-ee4j / grizzly

Grizzly
https://eclipse-ee4j.github.io/grizzly
Other
147 stars 68 forks source link

introduce FileChunk interface to transfer file chunks #2169

Closed kofemann closed 2 years ago

kofemann commented 2 years ago

The FileTransfer class is designed to utilize OS zero-copy capability to write a file into a socket. However it opens and closes the file. This might be not optimal if we need to send a ching of a file.

The introduced FileChunk interface aims to add more flexibility.

Signed-off-by: Tigran Mkrtchyan tigran.mkrtchyan@desy.de (cherry picked from commit 6183f9de09df2eae9758e618fc4c8e0d89d05307)