Dynamic allocation of protobuf encoder on huge messages

This commit is contained in:
Niklas Jensen
2026-01-15 23:19:03 +01:00
committed by Rune Harlyk
parent 1b6ffc4641
commit 50ef91ab22
2 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
#include <string>
// Make sure that this aligns with socket_message.FSDownloadChunkResponse.data max_size (and for the corresponsing request)
#define FS_MAX_CHUNK_SIZE 2**14 // ~= 16 kb
#define FS_MAX_CHUNK_SIZE 16384 // ~= 16 kb
#define FS_TRANSFER_TIMEOUT 30000 // 30 seconds
namespace FileSystemWS {