Skip to content

Commit

Permalink
fix(server): advertize smaller FPU
Browse files Browse the repository at this point in the history
u32::MAX is too large for mstsc, it fails to connect.
See also: Devolutions#318

16Mb is the value use by freerdp
sample/server (FreeRDP/FreeRDP#1313) and it's
probably fine for now.

Signed-off-by: Marc-André Lureau <[email protected]>
  • Loading branch information
elmarco committed Dec 5, 2023
1 parent 40c6eba commit 3f0014d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/ironrdp-server/src/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ fn virtual_channel_capabilities() -> capability_sets::VirtualChannel {

fn multifragment_update() -> capability_sets::MultifragmentUpdate {
capability_sets::MultifragmentUpdate {
max_request_size: u32::MAX,
// FIXME: use an acceptable value for msctc.
// What is the actual server max size?
max_request_size: 16_777_215,
}
}

0 comments on commit 3f0014d

Please sign in to comment.