Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoteFile.RemoteFileInputStream does not hanbdle read with len=0 correctly #931

Open
MichalStehlikCz opened this issue Feb 23, 2024 · 0 comments

Comments

@MichalStehlikCz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant