aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-08-11 17:25:37 +0200
committerChristophe Besson <cbesson@gmail.com>2026-08-11 17:25:37 +0200
commit3015c631883b8289369bb29a3842a3971e608170 (patch)
tree413eef9055aedc4bcf9dc5db17501d952c831df0 /packages
parent39e39ee107b14e73ddf137c949bc56c1695691c8 (diff)
downloadmeshbay-3015c631883b8289369bb29a3842a3971e608170.tar.gz
fix(ui): reduce upload chunk size to 48KB to fit aiortc SCTP limit
aiortc advertises maxMessageSize=65536 in SDP. A 64KB data chunk + msgpack envelope + 4-byte length prefix exceeds this limit, causing "Trying to send message larger than max-message-size" on upload. 48KB data + overhead stays well under 65536 bytes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js
index 3d87275..d8f9df5 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/app.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js
@@ -577,7 +577,7 @@ function formatDate(ts) {
// ── Group Page ──────────────────────────────────────────────────────────────
const CHUNK_SIZE = 1024 * 1024;
-const UPLOAD_CHUNK_SIZE = 64 * 1024;
+const UPLOAD_CHUNK_SIZE = 48 * 1024;
const PIPELINE_WINDOW = 8;
async function pipelinedDownload(transport, gekKey, fileId, totalChunks, onChunk, writable) {