Skip to content

fix(agent): add RDM multi-instance support for Jump messages#1669

Merged
vnikonov-devolutions merged 3 commits intomasterfrom
fix/agent-rdm-multiinstance
Feb 3, 2026
Merged

fix(agent): add RDM multi-instance support for Jump messages#1669
vnikonov-devolutions merged 3 commits intomasterfrom
fix/agent-rdm-multiinstance

Conversation

@vnikonov-devolutions
Copy link
Contributor

Add RDM multi-instance support for Jump messages (separate named pipe for each RDM instance in session)

Issue: RDMW-21183

@vnikonov-devolutions
Copy link
Contributor Author

CI: GitHub actions runners are unwell

.prefix("devolutions-session-rdm")
.suffix(".pid")
.rand_bytes(0)
// Keep file after drop, while still removing on reboot on Windows.
Copy link
Member

Choose a reason for hiding this comment

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

question: Why do we need to keep it after drop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because this file should persist between devolutions-session launched (re-starts on every RDP reconnection), see find_rdm_pid doc comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am mainly interested in tempfile logic which removes file on reboot for Windows (temo files are persistent on Windows by default)

Copy link
Member

Choose a reason for hiding this comment

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

Would you agree with updating the comment like this?

        // Keep file after drop so the PID hint persists across devolutions-session
        // restarts (which occur on every RDP reconnection). See `find_rdm_pid` doc
        // comment. The file is still cleaned up on Windows reboot since it resides
        // in the system temp directory.

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, good job!

@vnikonov-devolutions vnikonov-devolutions enabled auto-merge (squash) February 3, 2026 12:51
@vnikonov-devolutions vnikonov-devolutions merged commit 3c97b11 into master Feb 3, 2026
40 checks passed
@vnikonov-devolutions vnikonov-devolutions deleted the fix/agent-rdm-multiinstance branch February 3, 2026 12:52
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.

3 participants