[SSSD] [PATCH] Speed up NSS responses while offline
Simo Sorce
ssorce at redhat.com
Mon Nov 23 14:16:58 UTC 2009
On Thu, 2009-11-19 at 16:45 -0500, Stephen Gallagher wrote:
>
> [PATCH] Speed up user requests while offline
>
> This adds a new boolean option to sss_dp_send_acct_req() called
> fast_reply. If we make a request to the backends and we are
> currently offline, this option will determine whether we should
> immediately return from the cache (acceptable for NSS requests) or
> potentially wait for an online check to complete (required for PAM
> requests).
>
> If we immediately return from cache, we will still continue processing
> in the backend. If it is time to do an online check, it will happen
> out
> of band.
Patch looks good except for adding a new param in the bus protocol.
As discussed on IRC we can pass fast_reply as a parameter of the type,
and make type a bitfield as it should have always been.
Simo.
--
Simo Sorce * Red Hat, Inc * New York
More information about the sssd-devel
mailing list