]> xenbits.xensource.com Git - libvirt.git/commit
rpc: Switch to dynamically allocated message buffer
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Apr 2012 15:21:24 +0000 (17:21 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Jun 2012 15:48:40 +0000 (17:48 +0200)
commita2c304f6872f15c13c1cd642b74008009f7e115b
tree8793b5fd047250dc598014d872928b8f1a7173a6
parent7bff56a0d1514cb955eb14adc14281626e80e96c
rpc: Switch to dynamically allocated message buffer

Currently, we are allocating buffer for RPC messages statically.
This is not such pain when RPC limits are small. However, if we want
ever to increase those limits, we need to allocate buffer dynamically,
based on RPC message len (= the first 4 bytes). Therefore we will
decrease our mem usage in most cases and still be flexible enough in
corner cases.
src/rpc/virnetclient.c
src/rpc/virnetmessage.c
src/rpc/virnetmessage.h
src/rpc/virnetserverclient.c
tests/virnetmessagetest.c