From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b0a4e7e80c167ba1,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,b0a4e7e80c167ba1,start X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1994-02-08 09:38:59 PST Xref: gmd.de comp.unix.ultrix:12886 comp.sys.dec:13284 Newsgroups: comp.unix.ultrix,comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!wupost!ukma!rsg1.er.usgs.gov!jobone!ed8200!pt9233.ped.pto.ford.com!cannell From: cannell@pt9233.ped.pto.ford.com (Larry Cannell) Subject: dxsession and xdm ping timeouts Message-ID: <1994Feb8.173859.9670@ed8200.ped.pto.ford.com> Sender: news@ed8200.ped.pto.ford.com (USENET News System) Nntp-Posting-Host: pt9233.ped.pto.ford.com Organization: Ford Motor Co., Powertrain Electronics X-Newsreader: TIN [version 1.1 PL7] Date: Tue, 8 Feb 1994 17:38:59 GMT I've just researched a problem that I think some of you may be interested in knowing about. It has to do with dxsession, its use of XGrabServer, and XDM's use of PingTimeout. We use XDM R5 on our Ultrix 4.3a systems. I ftped this version of XDM from gatekeeper and it runs quite well (much better than the XDM R4 on the unsupported tape). When we started to deploy X terminals we immediately started getting complaints from users who said that their session was being killed a few minutes after they paused it. Here is the cause of the problem and a workaround solution: - dxsession under Ultrix appears to issue an XGrabServer to tie up the X server's keyboard and mouse. I found this out with an X trace utility that's part of my X window PC package. Interestingly enough OSF/1's dxsession does not use XGrabServer but appears to explicitly grab the keyboard and mouse with XGrabKeyboard and XGrabButton (or something like this). - XDM has a couple of resources, pingInterval and pingTimeout, which determines how often XDM will send a XSync to the remote server to see if it is still alive. I had previously set these lower than the default to catch the user who had turned off their X terminal. - when the X server is grabbed via the XGrabServer call the server is apparently unable to respond to the XSync call. XDM interprets this as a dead server and send an reset to the server which apparently gets through. - The workaround is to specify a large value for pingInterval in the xdm-config file. If Ultrix's dxsession is ever fixed then this workaround isn't needed and would probably not be desirable. -- Larry Cannell (cannell@ed8200.ped.pto.ford.com) Powertrain Electronics Ford Motor Company