From: hjstein@bfr.co.il (Harvey J. Stein)
Subject: Re: Need help with NIS on RedHat 4.2/Alpha
Date: 1997/11/19 [thread overview]
Message-ID: <m2wwi5i3i8.fsf@blinky.bfr.co.il> (raw)
In-Reply-To: 3opvo0c0gw.fsf@santaka.cam-orl.co.uk
Sai-Lai Lo <S.Lo@orl.co.uk> writes:
> Neil Henson T-12 <njh@t12.lanl.gov> writes:
>
> > Has anyone managed to get an Alpha running RedHat 4.2 set up as an NIS
> > client correctly?
<snip>
> 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.
<snip>
> 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
prev parent reply other threads:[~1997-11-19 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-11-14 5:00 Need help with NIS on RedHat 4.2/Alpha Neil Henson T-12
[not found] ` <3opvo0c0gw.fsf@santaka.cam-orl.co.uk>
1997-11-19 5:00 ` Harvey J. Stein [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox