diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2008-11-02 20:17:26 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-03-25 13:01:53 +0000 |
commit | be458e1a8f123567cacde77af113d109766a1d5a (patch) | |
tree | 258bbd253a1fb1e66d166605bd1260184ed9d72e | |
parent | 0e37454ddd2b797ee403d851af3cbf0d38466719 (diff) |
Xming: XDMCP latency fix patch
Patches to the XDMCP state machine to fix a nasty latency bug with heavyweight DM's (fd.o Bugzilla 7911).
XXX: We don't know why this works!
from Xming patch 10
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | os/xdmcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/xdmcp.c b/os/xdmcp.c index c1d650d46..872eea222 100644 --- a/os/xdmcp.c +++ b/os/xdmcp.c @@ -662,7 +662,7 @@ XdmcpBlockHandler( return; millisToGo = timeOutTime - GetTimeInMillis(); if ((int) millisToGo < 0) - millisToGo = 0; + millisToGo = 1; AdjustWaitForDelay (wt, millisToGo); } @@ -706,10 +706,10 @@ XdmcpWakeupHandler( else if (state == XDM_RUN_SESSION) keepaliveDormancy = defaultKeepaliveDormancy; } - if (XFD_ANYSET(&AllClients) && state == XDM_RUN_SESSION) + if (0) timeOutTime = GetTimeInMillis() + keepaliveDormancy * 1000; } - else if (timeOutTime && (int) (GetTimeInMillis() - timeOutTime) >= 0) + else if (0) { if (state == XDM_RUN_SESSION) { |