[Freeipa-devel] [PATCH] lower fixed timeout values

Simo Sorce ssorce at redhat.com
Mon Apr 27 13:20:54 UTC 2009


On Mon, 2009-04-27 at 13:35 +0200, Sumit Bose wrote:
> Stephen Gallagher schrieb:
> > Sumit Bose wrote:
> >> Hi,
> > 
> >> this patch lowers some hardcoded timeout values. 'getent groups' with
> >> rawhide1.fedoraproject.org needs some time on my notebook and while the
> >> client is waiting for 300s for a response the proxy backend got killed
> >> by the monitor and the sysdb call run into a timeout, too.
> > 
> >> bye,
> >> Sumit
> > 
> > 
> >> ------------------------------------------------------------------------
> > 
> >> _______________________________________________
> >> Freeipa-devel mailing list
> >> Freeipa-devel at redhat.com
> >> https://www.redhat.com/mailman/listinfo/freeipa-devel
> > 
> > Nack.
> > 
> > If we're going to lower those timeouts for these reasons, I'd rather see
> > their value being tied to the timeouts they interfere with. For example,
> > if the socket timeout is causing the monitor to kill the service, then
> > we need to have a check in the configuration that the monitor check time
> > must be greater than the socket timeout.
> > 
> 
> I agree, I think it would make sense to define a very small number, or
> maybe only one, base timeout values and derive all other from them.
> 
> Do we want 'getent passwd' to return after a fixed time or only when all
> information is read and shown to the user?

getent by definition is synchronous so it should wait.
we have timeouts right now because we may still have bugs in the
implementation and spots where we can't correctly catch if the operation
will ever successfully finish.

But the timeout is only a last resort measure and anything below 5
minutes is going to be more harm then help.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the Freeipa-devel mailing list