mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2026-11-27 00:04:24 +00:00
Bound message sizes on hbbs and hbbr
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. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JAxkkh9Gd5dwGW8vL9JNV8
This commit is contained in:
1 parent
08cd4428a7
commit
495a271f44
5 files changed
+226
-43
No files matched your search
@@ -49,6 +49,7 @@ in the inherited process environment.
|
||||
| `DB_URL` 🅴 | *(none)* | `./db_v2.sqlite3` | Path/URL of the SQLite database file. See [Database](#database). |
|
||||
| `MAX_DATABASE_CONNECTIONS` 🅴 | *(none)* | `1` | Size of the SQLite connection pool. |
|
||||
| `MAX_PUNCH_REQUESTS` 🅴 | *(none)* | `100000` | Number of punch-request records kept in memory for the `punch-requests` [console](#runtime-console) command; the oldest is dropped when full. `0` disables recording. |
|
||||
| `MAX_MESSAGE_KB` 🅴 | *(none)* | `64` | Largest message, in KiB, that `hbbs` accepts on its TCP and WebSocket listeners; a connection that sends a bigger one is dropped. Capped at `65536`. The default fits an online-status query for about 5000 standard 9–10 digit IDs, fewer with long custom IDs; a client whose query is too big shows no online status. |
|
||||
|
||||
🅴 = set through the inherited process environment.
|
||||
|
||||
|
||||
Reference in new issue
Block a user