diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-24 10:12:37 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-24 16:45:38 +0200 |
| commit | 02aeb0a751dce80fac1bfca31b6f736558953b77 (patch) | |
| tree | 99c3accd0adab829e07256e36459a36f0516c143 /docs | |
| parent | 219f3f7d1caafb45a9f7118f9792f6881501b3e7 (diff) | |
| download | meshbay-02aeb0a751dce80fac1bfca31b6f736558953b77.tar.gz | |
refactor(node): move uploads out of webrtc_server
UploadMixin in transport/webrtc/upload_handlers.py, with the upload cap;
_upload_chunk moved unchanged, _append_chunk joins webrtc/disk.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/MESHBAY_NODE_PROTOCOL.md | 2 | ||||
| -rw-r--r-- | docs/transfers-v1.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/MESHBAY_NODE_PROTOCOL.md b/docs/MESHBAY_NODE_PROTOCOL.md index 3c39835..90b0b41 100644 --- a/docs/MESHBAY_NODE_PROTOCOL.md +++ b/docs/MESHBAY_NODE_PROTOCOL.md @@ -2294,7 +2294,7 @@ LP(x) = uint32be(len(x)) || x every field, no exceptions | `PRE_HANDSHAKE_MAX_MSG` / `MAX_MSG` | 64 KiB / 64 MiB | `webrtc_server.py` / `webrtc/limits.py` | | `CHUNK_SIZE` | 1 MiB | `webrtc/limits.py` | | `DOWNLOAD_BUFFER_HIGH` | 2 MiB | `webrtc/files.py` | -| `MAX_UPLOAD_BYTES` | 8 GiB, default only — `max_upload_gb` overrides it per node | `webrtc_server.py` | +| `MAX_UPLOAD_BYTES` | 8 GiB, default only — `max_upload_gb` overrides it per node | `webrtc/upload_handlers.py` | | Download pipeline / chunk retry (client) | 8 in flight; 6 attempts, 1.5 s apart | `file-utils.js` | | Upload chunk / window / send-buffer high water (client) | 48 KiB / 32 / 1 MiB | `transport.js` | | `UPLOAD_ID_LEN` | 16 bytes, hex on the wire | `protocol.py` | diff --git a/docs/transfers-v1.md b/docs/transfers-v1.md index 711c861..f9c3675 100644 --- a/docs/transfers-v1.md +++ b/docs/transfers-v1.md @@ -58,7 +58,7 @@ and encrypts one 1 MB chunk, waits for room on the channel learns that a download started, and never learns that one ended.** There is nothing to count and nothing to cap. This is the central fact of this work. -**An upload is half-visible.** `_do_file_upload` (`webrtc_server.py:4471`) +**An upload is half-visible.** `_do_file_upload` (`webrtc/upload_handlers.py`) keeps `self._uploads[f"{rel_dir}/{filename}"]` with `next_index` and a `.part` file on disk. That state is **per session object and in memory**: a browser that disconnects mid-upload leaves a `.part` file on the operator's disk that |