From 64d19e480bba13bb08ac37e77da86ed8c743f7bd Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sat, 19 Jun 2021 17:32:48 +0100 Subject: [PATCH] Chunk size set to 1MB for now, as it seems that our networking code has problems when transferring 2MB chunks. We can increase this later once that problem has been fixed. --- src/main/java/org/qortal/storage/DataFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/qortal/storage/DataFile.java b/src/main/java/org/qortal/storage/DataFile.java index 2d20cb90..37f5a2ea 100644 --- a/src/main/java/org/qortal/storage/DataFile.java +++ b/src/main/java/org/qortal/storage/DataFile.java @@ -44,7 +44,7 @@ public class DataFile { private static final Logger LOGGER = LogManager.getLogger(DataFile.class); public static final long MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MiB - public static final int CHUNK_SIZE = 2 * 1024 * 1024; // 2MiB + public static final int CHUNK_SIZE = 1 * 1024 * 1024; // 1MiB public static int SHORT_DIGEST_LENGTH = 8; protected String filePath;