hierynomus / hierynomus/sshj

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

Open
#931 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.