Repository navigation
Wait longer for RDP sessions after boot and refuse two running sessions with the same Windows user - #118
Open
mlopezsegura wants to merge 1 commit into
Open
Wait longer for RDP sessions after boot and refuse two running sessions with the same Windows user#118mlopezsegura wants to merge 1 commit into
mlopezsegura wants to merge 1 commit into
Conversation
…ssion After a restart, an autostart RDP session took more than 30 s to sign in (its RDP-Tcp session was there but still without a user) and was marked as failed after 20 tries. The wait is now by time: 30 s, or 2 minutes during the first 5 minutes after boot. Two sessions with the same Windows user ended up in the same Windows session, because starting reuses the RDP session the user already has; stopping either closed both. Starting a session now fails with a clear message while another running session uses the same Windows user. Both from #80. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open
This branch has not been deployed
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.
Two problems from #80.
Autostart RDP sessions failed after a restart. Right after boot, signing in takes much longer. In the reporter's log, the RDP session (
RDP-Tcp#0) appeared after 31 s but still had no user, and OpenStreamMS gave up after its 20 tries of 1.5 s.WaitForSessionnow waits by time: 30 s as before, or 2 minutes during the first 5 minutes after boot. The relaxed (any non-console session) half still starts halfway through.Two sessions with the same Windows user shared one Windows session. Starting reuses the RDP session the user already has (
GetOrCreateSession), so a second OpenStreamMS session with the same user attached to the first one's Windows session. Stopping either logged that session off and stopped both. Starting a session now fails while another running session uses the same Windows user, with a message (22 languages) that names it and suggests another user or an isolated session. Local sessions and isolated sessions with their own user aren't affected.Tests:
SessionStartGuardsTests(5 new), full suite (215) and i18n pass. Not tried on a real PC after a reboot.🤖 Generated with Claude Code