Home

Users often do not reconnect to disconnected session - A new session is created instead...

%3CLINGO-SUB%20id%3D%22lingo-sub-464590%22%20slang%3D%22en-US%22%3EUsers%20often%20do%20not%20reconnect%20to%20disconnected%20session%20-%20A%20new%20session%20is%20created%20instead...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-464590%22%20slang%3D%22en-US%22%3E%3CP%3ELooks%20similar%20to%20this%202019%20preview%20bug%20report%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Server-Insiders%2FBug-no-reconnect-to-disconnected-session-with%2Fm-p%2F218413%23M558%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Server-Insiders%2FBug-no-reconnect-to-disconnected-session-with%2Fm-p%2F218413%23M558%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETest%20case%3A%3C%2FP%3E%3CP%3E-%20Two%20session%20hosts%3C%2FP%3E%3CP%3E-%20Set%20idle%20timeout%20to%205%20minutes%20and%20configure%20sessions%20to%20disconnect%20rather%20than%20terminate%20on%20idle%20timeout%3C%2FP%3E%3CP%3E-%20Default%20load%20balancing%3C%2FP%3E%3CP%3E-%20When%20timeout%20of%20idle%20session%20occurs%20%2B%202%20min%20grace%20time%20the%20session%20correctly%20disconnect%20on%20session%20host%202.%26nbsp%3B%3C%2FP%3E%3CP%3E-%20I%20connect%20again%20to%20the%20host%20pool%20and%20the%20load%20balancer%20picks%20session%20host%201%20(bad%20choice%20since%20I%20have%20a%20disconnected%20session%20on%20on%20session%20host%202.)%20It%20creates%20a%20new%20session%20on%20session%20host%202.%20(I%20can%20now%20see%20that%20I%20have%20one%20disconnected%20and%20one%20active%20session.)%20Really%20bad%20since%20this%20messes%20with%20shared%20user%20profiles.%3C%2FP%3E%3CP%3E-%20Waiting%20for%20a%20timeout%20on%20the%20new%20session%20and%20I%20know%20have%20one%20disconnected%20session%20on%20each%20session%20host.%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Connecting%20to%20the%20host%20pool%20again%20just%20to%20see%20what%20happens.%20Load%20balancer%20picks%20session%20host%201%20where%20RDS%20uses%20the%20disconnected%20session%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%202%20cents%20worth%20of%20root%20cause%20analysis%3A%20The%20load%20balancing%20algorithm%20that%20you%20have%20developed%20fails%20to%20consider%20whether%20I%20already%20have%20a%20disconnected%20session%20on%20one%20of%20the%20session%20hosts.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-572269%22%20slang%3D%22en-US%22%3ERe%3A%20Users%20often%20do%20not%20reconnect%20to%20disconnected%20session%20-%20A%20new%20session%20is%20created%20instead...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-572269%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309051%22%20target%3D%22_blank%22%3E%40Johan_Eriksson%3C%2FA%3E%26nbsp%3B%3A%20As%20you%20mention%2C%20the%20expected%20behavior%20is%20to%20select%20the%20session%20that%20is%20disconnected%20which%20does%20happen%20in%20most%20cases.%20We%20have%20seen%20several%20instances%20like%20yours%20and%20are%20investigating.%20If%20we%20cannot%20find%20resolution%20in%20our%20other%20repro's%2C%20may%20I%20reach%20out%20to%20you%20through%20the%20Private%20Messages%20to%20nail%20it%20down%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-574813%22%20slang%3D%22en-US%22%3ERe%3A%20Users%20often%20do%20not%20reconnect%20to%20disconnected%20session%20-%20A%20new%20session%20is%20created%20instead...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-574813%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305776%22%20target%3D%22_blank%22%3E%40christianmontoya%3C%2FA%3E%26nbsp%3BSure%2C%20feel%20free%20to%20reach%20out%20via%20private%20messages.%20I%20am%20happy%20you%20are%20looking%20at%20this%2C%20since%20not%20fixing%20it%20would%20leave%20my%20users%20with%20a%20bad%20experience.%20I%20was%20even%20contemplating%20only%20using%20one%20(very%20big)%20session%20host%20as%20an%20ugly%20work%20around%20to%20this%20limitation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-583788%22%20slang%3D%22en-US%22%3ERe%3A%20Users%20often%20do%20not%20reconnect%20to%20disconnected%20session%20-%20A%20new%20session%20is%20created%20instead...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-583788%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309051%22%20target%3D%22_blank%22%3E%40Johan_Eriksson%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305776%22%20target%3D%22_blank%22%3E%40christianmontoya%3C%2FA%3E%20We%20have%20experienced%20this%20disconnect%20issue%20as%20well.%20We%20have%20an%20excel%20app%20that%20will%20lock%20database%20files%20when%20it%20is%20pulling%20reports.%20The%20user%20that%20was%20testing%20the%20app%20left%20the%20session%20open%20at%20the%20end%20of%20the%20day.%20The%20next%20day%20we%20could%20not%20get%20his%20user%20to%20connect%20to%20the%20same%20server%20with%20the%20locked%20files.%20We%20have%20a%20pool%20with%204%20vms%2C%20and%20while%20he%20was%20trying%20to%20connect%20he%20actually%20went%20to%20all%203%20of%20the%20others%20and%20never%20to%20the%20one%20with%20the%20disconnected%20session%20and%20running%20apps.%20We%20eventually%20had%20to%20kill%20the%20disconnected%20session%20to%20unlock%20the%20files.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-680347%22%20slang%3D%22en-US%22%3ERe%3A%20Users%20often%20do%20not%20reconnect%20to%20disconnected%20session%20-%20A%20new%20session%20is%20created%20instead...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-680347%22%20slang%3D%22en-US%22%3EI%20have%20the%20same%20issues.%20It%20isn't%20as%20consistent%20as%20above%20since%20I%20sometimes%20do%20get%20reconnected%20to%20my%20existing%20session%20but%20I%20have%20had%20it%20where%20my%20users%20end%20up%20getting%20load%20balanced%20to%20a%20different%20machine%20than%20their%20disconnected%20session.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1051627%22%20slang%3D%22en-US%22%3ERe%3A%20Users%20often%20do%20not%20reconnect%20to%20disconnected%20session%20-%20A%20new%20session%20is%20created%20instead...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1051627%22%20slang%3D%22en-US%22%3E%3CP%3EAll%20I%20have%20the%20same%20issue%20behavior.%20I%20have%203%20VMs.%26nbsp%3B%20Is%20there%20update%20here%20or%20fix%3F%20Also%20is%20there%20a%20way%20(command)%20to%20move%20a%20disconnected%20session%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Johan_Eriksson
Contributor

Looks similar to this 2019 preview bug report: https://techcommunity.microsoft.com/t5/Windows-Server-Insiders/Bug-no-reconnect-to-disconnected-sess...

 

Test case:

- Two session hosts

- Set idle timeout to 5 minutes and configure sessions to disconnect rather than terminate on idle timeout

- Default load balancing

- When timeout of idle session occurs + 2 min grace time the session correctly disconnect on session host 2. 

- I connect again to the host pool and the load balancer picks session host 1 (bad choice since I have a disconnected session on on session host 2.) It creates a new session on session host 2. (I can now see that I have one disconnected and one active session.) Really bad since this messes with shared user profiles.

- Waiting for a timeout on the new session and I know have one disconnected session on each session host. 

- Connecting to the host pool again just to see what happens. Load balancer picks session host 1 where RDS uses the disconnected session correctly.

 

My 2 cents worth of root cause analysis: The load balancing algorithm that you have developed fails to consider whether I already have a disconnected session on one of the session hosts. 

 

5 Replies

@Johan_Eriksson : As you mention, the expected behavior is to select the session that is disconnected which does happen in most cases. We have seen several instances like yours and are investigating. If we cannot find resolution in our other repro's, may I reach out to you through the Private Messages to nail it down?

@christianmontoya Sure, feel free to reach out via private messages. I am happy you are looking at this, since not fixing it would leave my users with a bad experience. I was even contemplating only using one (very big) session host as an ugly work around to this limitation.

Highlighted

@Johan_Eriksson @christianmontoya We have experienced this disconnect issue as well. We have an excel app that will lock database files when it is pulling reports. The user that was testing the app left the session open at the end of the day. The next day we could not get his user to connect to the same server with the locked files. We have a pool with 4 vms, and while he was trying to connect he actually went to all 3 of the others and never to the one with the disconnected session and running apps. We eventually had to kill the disconnected session to unlock the files.

I have the same issues. It isn't as consistent as above since I sometimes do get reconnected to my existing session but I have had it where my users end up getting load balanced to a different machine than their disconnected session.

All I have the same issue behavior. I have 3 VMs.  Is there update here or fix? Also is there a way (command) to move a disconnected session?

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies