Make the following registry changes on the RDP client machine:
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client]
"Keep Alive Interval"=dword:00000001
Make the following registry changes on the terminal server:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
"KeepAliveInterval"=dword:00000001
"KeepAliveEnable"=dword:00000001