]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ServerClient: Flush cached data
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Nov 2011 13:14:54 +0000 (14:14 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 1 Nov 2011 14:58:05 +0000 (15:58 +0100)
commitb7b5e0c8338698a1ae77edf86c6701421887e877
tree891799cfb05d1f141ca983ac9372ff7179a04d3d
parentc85013b90d0b820fe7dc6bcbdeff8ebf9852795a
ServerClient: Flush cached data

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