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

[v14] desktop access: soften the disconnect error #34421

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Nov 9, 2023

Backport #33941 to branch/v14

If the Windows host (RDP server) decides to terminate the connection,
it often sends a message indicating why the disconnect is coming.
One example of a server-initiated disconnect would be when the user
clicks "log off" in the RDP session or when they restart the remote
machine.

We forward this message to the UI, but we put it in a big red ERROR
box that makes it look like something went wrong.

Errors should be reserved for unexpected disconnections, so covert
the dialog to "info" level and soften the messaging.
With the prior commit, we successfully made server-side disconnects
look less like errors, but we also made some real errors (like
connection time outs) look less like errors.

Now, we render an error indicator when we have an unexpected
disconnect. We also add a special check for "RDP connection failed"
which is used to indicate that the connection was never established
succesfully.

This also fixes an ancient bug where our strings had an extra
unprintable byte at the end. This is because the TDP codec was
interpreting the "severity" byte as part of the string, rather
than reading only the length that was specified in the message.
@zmb3 zmb3 added this pull request to the merge queue Nov 13, 2023
Merged via the queue into branch/v14 with commit 76a1b96 Nov 13, 2023
24 checks passed
@zmb3 zmb3 deleted the bot/backport-33941-branch/v14 branch November 13, 2023 22:23
This was referenced Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants