[libvirt] [PATCH v2] ServerClient: Flush cached data

Jiri Denemark jdenemar at redhat.com
Tue Nov 1 15:14:36 UTC 2011


On Tue, Nov 01, 2011 at 14:49:46 +0000, Daniel P. Berrange wrote:
> On Tue, Nov 01, 2011 at 03:46:06PM +0100, Jiri Denemark wrote:
> > From: Michal Privoznik <mprivozn at redhat.com>
> > 
> > If daemon is using SASL it reads client data into a cache. This cache is
> > big (usually 65KB) and can thus contain 2 or more messages. However,
> > on socket event we can dispatch only one message. So if we read two
> > messages at once, the second will not be dispatched as the socket event
> > goes away with filling the cache.
> > Moreover, when dispatching the cache we need to remember to take care
> > of client max requests limit.
> > ---
> >  src/rpc/virnetserverclient.c |   29 ++++++++++++++++++++++++++++-
> >  1 files changed, 28 insertions(+), 1 deletions(-)
...
> ACK this looks good

Pushed, thanks,

Jirka




More information about the libvir-list mailing list