diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-19 01:02:05 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-19 01:49:56 +0200 |
| commit | c2c49182e6d4f1f1ef3ed3ba5e8699912f9a27bd (patch) | |
| tree | 026a7e4347d4580ed4914605019db50c5794a49b /packages/meshbay-node/src/meshbay_node/roster.py | |
| parent | 345a59fc128e5e4f253c277c8cee69a2b1062a4f (diff) | |
| download | meshbay-c2c49182e6d4f1f1ef3ed3ba5e8699912f9a27bd.tar.gz | |
feat(node): per-file upload ceiling is an operator setting, default 8 GB
Was a 4 GB constant in webrtc_server.py, the same on a small board and on
a machine holding a library. Now max_upload_gb in node.toml, on the Node
page and via `meshbay-node transfers max-size`, read from the transport
context per chunk so a change reaches an upload already running.
MESHBAY_DESIGN.md §6.4; §15.3 records a defect found beside it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/roster.py')
| -rw-r--r-- | packages/meshbay-node/src/meshbay_node/roster.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/roster.py b/packages/meshbay-node/src/meshbay_node/roster.py index b0ca78b..474db31 100644 --- a/packages/meshbay-node/src/meshbay_node/roster.py +++ b/packages/meshbay-node/src/meshbay_node/roster.py @@ -983,6 +983,7 @@ class Roster: SETTING_MAX_STREAMS = "max_concurrent_streams" SETTING_MAX_DOWNLOADS = "max_concurrent_downloads" SETTING_MAX_UPLOADS = "max_concurrent_uploads" + SETTING_MAX_UPLOAD_GB = "max_upload_gb" SETTING_TRANSCODE = "transcode_incompatible_video" SETTING_STUN_SERVERS = "stun_servers" SETTING_ICE_INTERFACES = "ice_interfaces" @@ -999,11 +1000,14 @@ class Roster: ("max_concurrent_downloads", self.SETTING_MAX_DOWNLOADS), ("max_concurrent_uploads", self.SETTING_MAX_UPLOADS), ("transcode_incompatible_video", self.SETTING_TRANSCODE), + ("max_upload_gb", self.SETTING_MAX_UPLOAD_GB), ]: stored = await self.get_setting(self.NODE_WIDE_GROUP_ID, setting) if stored is not None: if key == "transcode_incompatible_video": result[key] = stored != "0" + elif key == "max_upload_gb": + result[key] = float(stored) else: result[key] = int(stored) else: |