[v14] desktop access: soften the disconnect error#34421
Merged
zmb3 merged 2 commits intobranch/v14from Nov 13, 2023
Merged
Conversation
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.
rosstimothy
approved these changes
Nov 9, 2023
ibeckermayer
approved these changes
Nov 13, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport #33941 to branch/v14