rustdesk / rustdesk/rustdesk-server

50% Performance Drop: Why Does single-bandwidth=192Mb/s Only Achieve 80Mb/s in Single-Connection Transfers?

Open
#531 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
10.4k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Issue Description:
My current bandwidth provides an upload rate of 160 Mb/s. However, when transferring files via a single connection, the speed caps at 80 Mb/s, even though multi-connection transfers can fully utilize the 160 Mb/s bandwidth.

Configuration Parameters Applied:

  • limit-speed: 256 Mb/s
  • total-bandwidth: 1024 Mb/s
  • single-bandwidth: 192 Mb/s

Expected Behavior:
A single connection should ideally utilize the maximum available upload bandwidth (160 Mb/s).

Observed Behavior:
Single-connection speed is limited to 50% of the expected capacity (80 Mb/s), while multi-connection transfers achieve full bandwidth. This suggests a potential misconfiguration or bottleneck in the single-connection rate-limiting logic.

Request:
Could you help investigate why the configured single-bandwidth parameter (192 Mb/s) does not align with the observed performance? Any guidance on optimizing single-connection throughput would be greatly appreciated.

Image

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the single-connection and multi-connection transfers with the reported limit-speed, total-bandwidth, and single-bandwidth values. Trace the server's single-connection rate-limiting logic and verify how the configured Mb/s values are interpreted; done means explaining the 80 Mb/s cap or identifying the configuration or implementation issue causing it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.