From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10669a,9b871f59df527768 X-Google-Attributes: gid10669a,public X-Google-Thread: f9b51,9b871f59df527768 X-Google-Attributes: gidf9b51,public X-Google-Thread: 111c93,9b871f59df527768 X-Google-Attributes: gid111c93,public From: hjstein@bfr.co.il (Harvey J. Stein) Subject: Re: Need help with NIS on RedHat 4.2/Alpha Date: 1997/11/19 Message-ID: #1/1 X-Deja-AN: 290681336 References: <3opvo0c0gw.fsf@santaka.cam-orl.co.uk> Organization: Unspecified Organization Newsgroups: comp.os.linux.alpha,comp.os.linux.networking,comp.os.linux.setup Sai-Lai Lo writes: > Neil Henson T-12 writes: > > > Has anyone managed to get an Alpha running RedHat 4.2 set up as an NIS > > client correctly? > I had a similar experience with my Alpha running RedHat 4.2. After 'strace' > the ypbind slave process, it became clear what was causing the problem. > Over time, the timeout argument in the select() calls gradually reduced to > zero. When the value reaches zero, the process blasts the NIS server with > hundreds of requests until the reply for the first one comes back. I'm > surprised the server is holding up so well. > Could someone shed some light on this? This is a standard porting to Linux problem. Linux follows the select man page suggestion, which says that currently the timeout doesn't change, but programmers shouldn't rely on this and the timeout should really be reduced. So, the problem is that a) Linux reduces the timeout, and b) programmers ignored the part about not relying on the timeout not changing. The fix is that when porting code always make sure the timeout is reset before calling select. Good luck, -- Harvey J. Stein Berger Financial Research hjstein@bfr.co.il