Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server "resize" support #530

Merged
merged 12 commits into from
Aug 14, 2024
Merged

Server "resize" support #530

merged 12 commits into from
Aug 14, 2024

Conversation

elmarco
Copy link
Contributor

@elmarco elmarco commented Aug 13, 2024

Add deactivation-reactivation support to the server.

Add BitmapUpdate "stride" support, which helps/fixes qemu-rdp server for odd dimensions.

"debug" level is a bit too verbose here.

Signed-off-by: Marc-André Lureau <[email protected]>
So we can skip dumping the "data" field.

Signed-off-by: Marc-André Lureau <[email protected]>
Teach the server to call a DisplayControlHandler to
notify of monitor layout requests.

Signed-off-by: Marc-André Lureau <[email protected]>
Move finalize phase to a separate function, so we can introduce common
code for looping next, with deactivation-reactivation sequence. Also use
anyhow::Context instead of manually handling errors.

Signed-off-by: Marc-André Lureau <[email protected]>
Instead of reporting the error in various places, move error reporting
code to one place and simplify a bit the code thanks for anyhow::Context
and Result handling.

Signed-off-by: Marc-André Lureau <[email protected]>
Use an explicit enum to return the client loop/run state from the
handlers. This will allow to return a DeactivationReactivation sequence
state from the display handler next.

Signed-off-by: Marc-André Lureau <[email protected]>
So the function can be reused for deactivation-reactivation sequence.

Signed-off-by: Marc-André Lureau <[email protected]>
Teach the acceptor to resume from the CapabilitiesSendServer state.

Signed-off-by: Marc-André Lureau <[email protected]>
Copy link
Member

@CBenoit CBenoit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvements. LGTM!


let res = ironrdp_acceptor::accept_begin(framed, &mut acceptor)
.await
.context("Accept begin error")?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.static_channels.insert(channel);

// restore channel id if it was already attached
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CBenoit CBenoit merged commit a73e0b7 into Devolutions:master Aug 14, 2024
9 checks passed
@elmarco elmarco mentioned this pull request Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants