Commit Graph
32 Commits
Author SHA1 Message Date
RustDeskandClaude Opus 5.5 0415b0e057 Bound message sizes on hbbs and hbbr (#747)
hbbs drops a connection whose frame header announces more than
MAX_MESSAGE_KB (default 64, capped at 65536) on 21115, 21116 and the
websocket 21118, and gives each websocket 8 KiB buffers instead of
tungstenite's 128 KiB default.

hbbr bounds the relay request to 128 KiB until the two legs pair, then
lifts the bound on framed legs and restores tungstenite's defaults on
websocket legs. That needs set_config on an accepted stream, so
tokio-tungstenite and tungstenite now come from the rustdesk-org forks.


Claude-Session: https://claude.ai/code/session_01JAxkkh9Gd5dwGW8vL9JNV8

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:24:28 +08:00
RustDeskandClaude Opus 5.5 98ffcee829 Bound console reply writes with a deadline (#746)
Since #717 the console sends its reply with write_all, which waits until
every byte is sent. A local client that sends a command and then stops
reading would hold the task and its socket forever. Give the write the
same 1 s deadline as the read above it, and log a reply that fails or
runs late instead of dropping the error.


Claude-Session: https://claude.ai/code/session_01JAxkkiaGp2k8okvs4MpCUq

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:07:52 +08:00
jahvari 36a0996ee8 fix: write complete administrative console responses (#717)
* fix: write complete administrative console responses

* Document changed function contracts
2026-11-07 12:52:17 +08:00
1bd3938cfe Bound stalled relay writes in both directions (#723)
* Bound stalled relay writes in both directions

* Document changed function contracts

* Clarify relay authentication documentation

---------

Co-authored-by: rustdesk <71636191+rustdesk@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:47:28 +08:00
jahvariandRustDesk e5c0a4261d Preserve connection ports when applying forwarded WebSocket IPs (#725)
* Preserve connection ports when applying forwarded WebSocket IPs

* Document changed function contracts

* Update relay_server.rs

* Update IP address handling in rendezvous server

---------

Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
2026-11-07 12:44:26 +08:00
jahvari 474fbc7de4 Bound WebSocket upgrade handshake duration (#722)
* Bound WebSocket upgrade handshake duration

* Document changed function contracts
2026-11-07 12:43:08 +08:00
jahvari 134008e0e9 Fix relay waiter expiration after pair ID reuse (#721)
* Fix relay waiter expiration after pair ID reuse

* Keep waiter regressions separate from other relay tests

* Document changed function contracts

* Clarify relay authentication documentation
2026-11-07 12:07:52 +08:00
fufesou 873230e35a fix: key file perm (#705)
* fix: key file perm

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: enforce secure private key permissions on Unix

Create new keys with mode 0600 and verify permissions before writing.
Tighten existing keys to 0600 and propagate permission failures.
Preserve dangling symlinks and clean up failed key creation.

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: preserve read-only keys and prevent public key clobbering

Accept existing 0400 keys without changing their permissions.
Write the public key only after private key creation and writing succeed.

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: generate missing public keys and reject mismatched key pairs

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: publish public keys atomically without overwriting existing files

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: key file perms, comments

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: reject key conflicts and clean up failed private key writes

Reuse symlink resolution and simplify key loading and regression tests.

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: key file perm, simple refactor

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
2026-10-10 17:34:18 +08:00
rustdesk af7d7f0b02 fix bin 2026-07-25 11:42:45 +08:00
rustdesk 538aef71d1 bind interface and refactor doc 2026-07-24 10:56:56 +08:00
rustdesk 70dcfdeb95 https://github.com/rustdesk/rustdesk-server/issues/634 2026-07-21 07:12:57 +08:00
rustdesk 4e8d6d08e2 fix https://github.com/rustdesk/rustdesk-server/issues/435 2025-11-03 13:03:19 +08:00
rustdesk 2c57e51ec5 higher default bandwidth 2025-06-22 15:03:13 +09:00
21pages 7a509f6975 replace libs/hbb_common with submodule (#502)
cargo update -p schannel to fix crash on higher rust toolchain, https://github.com/seanmonstar/reqwest/issues/2311

Signed-off-by: 21pages <sunboeasy@gmail.com>
2025-01-20 17:34:22 +08:00
rustdesk 6f18a97644 v1.1.12 2024-10-07 16:21:36 +08:00
rustdesk 5078a1f797 reuse port, and revert hbbr -k 2024-05-24 18:37:11 +08:00
rustdesk 1142cf105b Fix #324 to remove unsafe 2023-12-01 11:32:07 +08:00
rustdesk f1e941bf9f fix is_loopback 2023-06-16 15:13:23 +08:00
rustdesk 675bf3c1f5 fix command line buffer and test addr 2023-03-16 00:53:58 +08:00
rustdesk 7e307a5a1c CI 2023-02-08 16:00:12 +08:00
RustDesk 0e01cfcd3a Merge branch 'master' into fix-clippy-warning 2023-01-07 00:28:18 +08:00
rustdesk e70d82b30f ipv6 support draft 2023-01-06 20:31:15 +08:00
Bo Zhang 60a6d672c5 Fix: clippy warning in rust 1.66.0 2023-01-06 18:48:18 +09:00
dlhxzb ca2bc99a38 Feat: listen for unix signal 2022-08-04 18:02:10 +09:00
rustdesk 51d8cd80c1 protbuf 3.1 with_bytes 2022-07-22 00:28:10 +08:00
rustdesk 39153ce147 fix slow connection, '/' in pub key, and hbbr wait for key, and possible
solution for https://github.com/rustdesk/rustdesk-server/issues/24
2022-07-13 00:22:45 +08:00
rustdesk b3f39598a7 change sled to sqlite and remove lic 2022-05-12 20:00:33 +08:00
rustdesk a10bb34f6e rename 2021-04-03 22:32:14 +08:00
open-trade 9132d85f74 refactor stop 2021-03-25 17:55:44 +08:00
rustdesk 9827d1cd8c more log 2021-03-22 18:21:30 +08:00
open-trade 474b8abf18 license 2021-03-19 18:19:24 +08:00
open-trade f864e6988f refactor 2021-03-19 16:48:21 +08:00