rustdesk / rustdesk/rustdesk-server

Relay of [::ffff:223.104.40.194]:26925 closed

Open
#455 16 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

Describe the bug
When rustDesk connects to a remote host, rustDesk displays "The connection was closed by the other host", and a loop appears.
hbbr in rustDesk-server always loops error logs as follows:

docker container: hbbr
logs:

[2024-08-21 08:01:59.602498 +00:00] INFO [src/relay_server.rs:441] New relay request a08eb6f4-f621-4ccb-a629-83a09c634e2b from [::ffff:xxx.xxx.xxx.28]:2270
[2024-08-21 08:01:59.810076 +00:00] INFO [src/relay_server.rs:425] Relayrequest a08eb6f4-f621-4ccb-a629-83a09c634e2b from [::ffff:xxx.xxx.xx.194]:39824 got paired
[2024-08-21 08:01:59.810142 +00:00] INFO [src/relay_server.rs:431] Both are raw
[2024-08-21 08:02:00.839937 +00:00] INFO [src/relay_server.rs:437] Relay of [::ffff:xxx.xxx.xx.194]:39824 closed
[2024-08-21 08:11:35.940252 +00:00] INFO [src/relay_server.rs:441] New relay request 248fd61d-3f9f-47ad-9f20-3179897d4756 from [::ffff:xxx.xxx.xx.28]:2271
[2024-08-21 08:11:36.099625 +00:00] INFO [src/relay_server.rs:425] Relayrequest 248fd61d-3f9f-47ad-9f20-3179897d4756 from [::ffff:xxx.xxx.xx.194]:39827 got paired
[2024-08-21 08:11:36.099700 +00:00] INFO [src/relay_server.rs:431] Both are raw
[2024-08-21 08:11:40.013331 +00:00] INFO [src/relay_server.rs:437] Relay of [::ffff:xxx.xxx.xx.194]:39827 closed
[2024-08-21 08:11:42.073705 +00:00] INFO [src/relay_server.rs:441] New relay request 646503e2-5ee4-47b3-afb0-d3b8fe27ba90 from [::ffff:xxxxxx.xxx.28]:2272
[2024-08-21 08:11:42.244657 +00:00] INFO [src/relay_server.rs:425] Relayrequest 646503e2-5ee4-47b3-afb0-d3b8fe27ba90 from [::ffff:xxx.xxx.xx.194]:39828 got paired
[2024-08-21 08:11:42.244692 +00:00] INFO [src/relay_server.rs:431] Both are raw
[2024-08-21 08:11:43.150780 +00:00] INFO [src/relay_server.rs:437] Relay of [::ffff:xxx.xxx.xx.xxx]:39828 closed
[2024-08-21 08:11:46.236640 +00:00] INFO [src/relay_server.rs:441] New relay request 1f86d634-4712-412f-a5a1-40aa3502205d from [::ffff:xxx.xxx.xxx.28]:2273
[2024-08-21 08:11:46.424905 +00:00] INFO [src/relay_server.rs:425] Relayrequest 1f86d634-4712-412f-a5a1-40aa3502205d from [::ffff:xxx.xxx.xx.194]:26925 got paired
[2024-08-21 08:11:46.424971 +00:00] INFO [src/relay_server.rs:431] Both are raw
[2024-08-21 08:11:47.942293 +00:00] INFO [src/relay_server.rs:437] Relay of [::ffff:xxx.xxx.xx.194]:26925 closed
[2024-08-21 08:11:53.034834 +00:00] INFO [src/relay_server.rs:441] New relay request 3b22e42c-a917-4336-a68c-387ddf2c2955 from [::ffff:xxx.xxx.xxx.28]:2274
[2024-08-21 08:11:53.184526 +00:00] INFO [src/relay_server.rs:425] Relayrequest 3b22e42c-a917-4336-a68c-387ddf2c2955 from [::ffff:xxxx.xxx.xx.194]:26926 got paired
[2024-08-21 08:11:53.184567 +00:00] INFO [src/relay_server.rs:431] Both are raw
[2024-08-21 08:11:54.110751 +00:00] INFO [src/relay_server.rs:437] Relay of [::ffff:xxx.xxx.xx.194]:26926 closed

Describe the environment

  • Install environment: docker, centos7
  • docker-compose install rustDesk-Server .
    eff966947ecfa2a2934e7fb94f62494

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 with the relay log entries in src/relay_server.rs around lines 425-441 and reproduce the connection through the Docker Compose deployment on CentOS 7. Compare the client’s connection-closed loop with the relay lifecycle shown in the logs; done means the relay no longer closes the connection unexpectedly and the remote session connects successfully.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.