Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Increase byte buffer to 8kb. Resolves #65
Browse files Browse the repository at this point in the history
  • Loading branch information
mordechai committed Apr 8, 2019
1 parent 5edc494 commit 01ea284
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
@@ -1,4 +1,6 @@
* *Upcoming Release*
* Increased download byte buffer to 8kb *— suggested by [@ChristianCiach](https://github.com/ChristianCiach)*
* **1.4.1*
* Allow 2 files with same path in config if both target different operating systems.
* Added `UpdateHandler.shouldCheckForUpdate()`. Returning `false` will skip that file from being updated.
* Pass arguments and system properties from the config when using the `DefaultLauncher`.
Expand All @@ -23,7 +25,7 @@
* Renamed `UpdateHandler::connect` to `UpdateHandler::openDownloadStream`
* Added more `Configuration.Builder::signer` overloads.
* Default bootstrap now deletes old files if `--syncLocal` was used.
* **1.3.2** *h/t [@ChristianCiach](https://github.com/ChristianCiach)*
* **1.3.2** *Tested on Linux by [@ChristianCiach](https://github.com/ChristianCiach)*
* Control how files are downloaded with `UpdateHandler::connect`.
* Delete old files with `Configuration::deleteOldFiles`.
* **1.3.1**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/update4j/ConfigImpl.java
Expand Up @@ -124,7 +124,7 @@ static boolean doUpdate(Configuration config, Path tempDir, PublicKey key, Injec

int read = 0;
double currentCompleted = 0;
byte[] buffer = new byte[1024];
byte[] buffer = new byte[1024 * 8];

Path output;
if (!updateTemp) {
Expand Down

0 comments on commit 01ea284

Please sign in to comment.