Bug 4517 - Seamless RDP is broken on Win2008 R2
Summary: Seamless RDP is broken on Win2008 R2
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: | rdesktop (deprecated) (show other bugs)
Version: 4.0.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.1.0
Assignee: Henrik Andersson
Keywords: ossman_tester
Depends on:
Reported: 2013-01-22 11:25 CET by Henrik Andersson
Modified: 2013-06-27 11:09 CEST (History)
0 users

See Also:
Acceptance Criteria:


Description Henrik Andersson cendio 2013-01-22 11:25:54 CET
A reconnection to a disconnected seamless WTS session fails to entering seamless mode, a black desktop with remote app is shown and not just the window.
This works on Win2003 but not on 2008R2 and seamlessrdpshell.exe is running in the session which is reconnected.

To reproduce;

rdesktop -A -s "c:\\seamlessrdp\\seamlessrdpshell.exe notepad.exe"

then wait for notepad to show up seamlessly, then hit ctrl-c to exit rdesktop
and get session in disconnected state. reconnect using the same line above and
get the black desktop.
Comment 1 Henrik Andersson cendio 2013-01-22 13:31:34 CET
A few drilldowns into this issue shows that when a session is reconnected WTSVirtualChannelWrite() fails to send a reconnect "HELLO" to rdesktop, 
writing 0 bytes on virtual channel.

Writing to a virtual channel were remote end has been disconnected and
then reconnected works as expected on win2003.

More digging into this issue reveals that WTSVirtualChannelOpen() is obsolete and WTSVirtualChannelOpenEx() should be used instead which minimum requirments are Vista / Windows Server 2008...


Comment 2 Henrik Andersson cendio 2013-01-24 14:31:18 CET
We are kind of forced to use the current API function for virtual channel due to
the new one is not backward compatible with XP / 2003.

I tried to close and reopen the virtual channel upon reconnection and it solves the problem, see upstream commit r1691.
Comment 3 Henrik Andersson cendio 2013-01-24 14:32:58 CET
Tester need to test seamless reconnection functionality on all
supported platforms XP, 2003 and 2008r2
Comment 4 Peter Åstrand cendio 2013-05-15 09:46:07 CEST
If anyone knows if this bug affected Windows 2008 as well, please fill in.
Comment 5 Pierre Ossman cendio 2013-06-17 16:55:42 CEST
Tested on Windows 2008r2: OK
Comment 6 Henrik Andersson cendio 2013-06-27 11:09:38 CEST
This works as expected.

Note You need to log in before you can comment on or make changes to this bug.