RDP session takes a while to "re-activate" after several minutes of inactivity.

RDP session takes a while to "re-activate" after several minutes of inactivity.

Post by Spin » Sat, 05 Nov 2005 15:23:25


I enabled RDP on my Windows Server 2003 at home so I can access it from
anywhere in the world with an Internet connection. Works great but there is
one annoying thing. At different places like at work or my mom's house, if
I walk away from the computer or work on an application outside of the RDP
session, and then go back to the RDP session (usually after several minutes
have gone by), I often must wait up to 30 seconds waiting for the RDP
session window to become "alive" again. On other words, simply clicking
inside the RDP window will not activate it immediately. I often have to
wait 15-30 seconds while watching some icon in the upper right-hand corner
of the screen (depicting a severed connection) blink a few times and after
it's done blinking I'm back in again. This is annoying though. Why does
the session get broken in the background? I am accessing my server from
high-speed connections. Thoughts?

--
Spin
 
 
 

RDP session takes a while to "re-activate" after several minutes of inactivity.

Post by Jeff Pitsc » Sat, 05 Nov 2005 20:09:24

Your provider at where your at is probably breaking the connection for you.
If it's consistently happening at the same places, then that's what it is.
you can try manipulating the TCP/IP keepalives to see if it helps:

[HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"KeepAliveTime"=dword:0000ea60
"KeepAliveInterval"=dword:000003e8
"TcpMaxDataRetransmissions"=dword:0000000a


Jeff Pitsch
http://www.yqcomputer.com/
Your Terminal Services Security Website

 
 
 

RDP session takes a while to "re-activate" after several minutes of inactivity.

Post by Spin » Sat, 05 Nov 2005 23:51:36

Ok, but which location are you referring to? And what value do I modify the
TCP/IP keepalives to?
 
 
 

RDP session takes a while to "re-activate" after several minutes of inactivity.

Post by Jeff Pitsc » Sat, 05 Nov 2005 23:54:16

You would want to enable it on the workstation your connecting to since that
is the only non-variable in the equation. You could also try enabling it on
one of the connecting machines as well.

Jeff Pitsch
http://www.yqcomputer.com/
Your Terminal Services Security Website
 
 
 

RDP session takes a while to "re-activate" after several minutes of inactivity.

Post by Spin » Sun, 06 Nov 2005 23:17:35

Hi, I looked under HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
and I do not have any of these keys on the server I am remoting into.

"KeepAliveTime"=dword:0000ea60
"KeepAliveInterval"=dword:000003e8
"TcpMaxDataRetransmissions"=dword:0000000a

--
Spin
 
 
 

RDP session takes a while to "re-activate" after several minutes of inactivity.

Post by Jeff Pitsc » Mon, 07 Nov 2005 01:49:18

You need to add them.

Jeff Pitsch
 
 
 

RDP session takes a while to "re-activate" after several minutes of inactivity.

Post by Spin » Mon, 07 Nov 2005 05:05:54

Doh! Am I an idiot or what? :-)

--
Spin
 
 
 

RDP session takes a while to "re-activate" after several minutes of inactivity.

Post by Jeff Pitsc » Mon, 07 Nov 2005 05:32:34

heh, don't feel bad. Sometimes with registry entries you never know.

Jeff Pitsch