fix: live transfer speed, receiver cancel, and sender/receiver byte-c… - #44
Conversation
…ount alignment - Speed now tracks bytes per recent window (rateTracker) instead of a lifetime average that only declines, in all three progress paths: sender, single-stream receiver, and segmented assembly - Cancelling on the receiving device aborts inbound streams within one chunk (cancellationReader), deletes the partial file, marks every file in the batch cancelled, and answers 499; segmented transfers share one cancel flag across parallel segments - The sender probes the peer's /api/status after an upload error and finalizes as cancelled (not a generic failure) when the peer cancelled, so both UIs agree; queued files stop too - TCP kernel buffers capped at 1 MiB (was 8 MiB) so the sender's buffered-bytes lead over the receiver shrinks from ~30 MB to a few MB; QUIC keeps its large UDP buffers via a separate control - 4 new regression tests: rolling rate vs lifetime average, cancellation reader, mid-stream inbound cancel, sender peer-cancel classification
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Important Review available on request
Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 35 |
| Duplication | 18 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
…ed in path expression' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ed in path expression' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ount alignment