[libvirt] [PATCH] rpc: Double buffer size instead of quadrupling buffer size.

Peter Krempa pkrempa at redhat.com
Fri May 26 12:14:16 UTC 2017


On Fri, May 26, 2017 at 13:02:15 +0100, Richard W.M. Jones wrote:
> When increasing the buffer size up to VIR_NET_MESSAGE_MAX, we
> currently quadruple it each time.  This unfortunately means that we
> cannot allow certain buffer sizes -- for example the current
> VIR_NET_MESSAGE_MAX == 33554432 can never be "hit" since ‘newlen’
> jumps from 16MB to 64MB.
> 
> Instead of quadrupling, double it each time.
> 
> Thanks: Daniel Berrange.
> ---

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170526/cac13f00/attachment-0001.sig>


More information about the libvir-list mailing list