]> xenbits.xensource.com Git - libvirt.git/commitdiff
Adjust legacy max payload size to account for header information
authorClaudio Bley <cbley@av-test.de>
Mon, 7 Oct 2013 10:13:00 +0000 (12:13 +0200)
committerClaudio Bley <cbley@av-test.de>
Mon, 7 Oct 2013 11:28:44 +0000 (13:28 +0200)
Commit 27e81517a87 set the payload size to 256 KB, which is
actually the max packet size, including the size of the header.

Reduce this by VIR_NET_MESSAGE_HEADER_MAX (24) and set
VIR_NET_MESSAGE_LEGACY_PAYLOAD_MAX to 262120, which was the original
value before increasing the limit in commit eb635de1fed.

src/rpc/virnetprotocol.x

index 1eae7cb80f718915bfbd01e4b72787f622f6b302..7b6f753ba773d56f836d0c4442ec955688f92649 100644 (file)
@@ -55,7 +55,7 @@ const VIR_NET_MESSAGE_INITIAL = 65536;
  * payload size. We need to remember this for compat with
  * old clients.
  */
-const VIR_NET_MESSAGE_LEGACY_PAYLOAD_MAX = 262144;
+const VIR_NET_MESSAGE_LEGACY_PAYLOAD_MAX = 262120;
 
 /* Maximum total message size (serialised). */
 const VIR_NET_MESSAGE_MAX = 16777216;