eclipse-ee4j / grizzly

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

introduce FileChunk interface to transfer file chunks #2144

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

dmatej commented 2 years ago

This PR is still missing in master branch, it was merged just to 3.0.1.

kofemann commented 2 years ago

@dmatej Shall I make a RP against master?

kofemann commented 2 years ago

See #2169