diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-11 15:42:52 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-11 15:43:06 +0200 |
| commit | 9d38418817d1894b31c93ece0113e503d82167cd (patch) | |
| tree | adf4c8126c90d60f6a16724d14eafb80f33d5289 /packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py | |
| parent | b39e73cbb279ab0274e8cd0b84304a602fe1d5ef (diff) | |
| download | meshbay-9d38418817d1894b31c93ece0113e503d82167cd.tar.gz | |
feat(node): log what a transfer moved when it ends
One INFO line per lease: bytes, duration, rate, and the SCTP
association's window, round trip, losses and T3 expirations.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py')
| -rw-r--r-- | packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py b/packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py index 0434554..eafdaed 100644 --- a/packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py +++ b/packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py @@ -319,6 +319,8 @@ class FilesMixin: if self._channel is None or self._channel.readyState != "open": return self._send(chunk_data) + if leased: + self._account(tr, len(chunk_data.get("ct") or b"")) log.debug("dl: sent file=%s chunk=%s bytes=%s buffered=%s", file_id[:12], chunk_index, len(chunk_data.get("ct") or b""), getattr(self._channel, "bufferedAmount", "?")) |