Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hierynomus#777: Don't request excessive read-ahead packets in Rem…
…oteFile Due to a bug in logic introduced by hierynomus#769, RemoteFile.ReadAheadRemoteFileInputStream started to send new read ahead requests for file parts that had already been requested. Every call to read() asked the server to send parts of the file from the point which is already downloaded. Instead, it should have asked to send parts after the last requested part. This commit adds exactly this logic. The bug didn't cause content corruption. It only affected performance, both on servers and on clients.
- Loading branch information