Skip to content

Conversation

@ymarcus93
Copy link
Contributor

Add support for sending a proper TLS close_notify message when the RDP client initiates a graceful disconnect PDU.

I've modified accept_finalize to return the underlying TokioFramed<S> once the loop exits on RunState::Disconnect. Then in the case that the connection has been upgraded to TLS, I call shutdown() of the underlying stream which should gracefully close the TLS connection and send the close_notify message.

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.

LGTM!

@CBenoit CBenoit enabled auto-merge (squash) November 17, 2025 09:58
auto-merge was automatically disabled November 17, 2025 12:17

Head branch was pushed to by a user without write access

@CBenoit CBenoit merged commit a70e01d into Devolutions:master Nov 17, 2025
10 checks passed
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