RemoteFile.RemoteFileInputStream does not hanbdle read with len=0 correctly
Open
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 620
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 11
Description
InputStream#read specification in JDK states that
If len is zero, then no bytes are read and 0 is returned
RemoteFileInputStream has no special handling and sends request to read zero bytes to remote server. This is bad from performance perspective, also some SFTP servers reject such request.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.