render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
3e5111
From 7babbc316dd636daa4dc16126cb72b2f27d71317 Mon Sep 17 00:00:00 2001
3e5111
Message-Id: <7babbc316dd636daa4dc16126cb72b2f27d71317@dist-git>
3e5111
From: Peter Krempa <pkrempa@redhat.com>
3e5111
Date: Wed, 24 May 2017 14:06:54 +0200
3e5111
Subject: [PATCH] rpc: Bump maximum message size to 32M
3e5111
3e5111
While most of the APIs are okay with 16M messages, the bulk stats API
3e5111
can run into the limit in big configurations. Before we devise a new
3e5111
plan for this, bump this limit slightly to accomodate some more configs.
3e5111
3e5111
(cherry picked from commit 97863780e8846277842e746186a54c4d2941755b)
3e5111
3e5111
https://bugzilla.redhat.com/show_bug.cgi?id=1440683
3e5111
3e5111
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
3e5111
---
3e5111
 src/rpc/virnetprotocol.x | 4 ++--
3e5111
 1 file changed, 2 insertions(+), 2 deletions(-)
3e5111
3e5111
diff --git a/src/rpc/virnetprotocol.x b/src/rpc/virnetprotocol.x
3e5111
index 9ce33b073..ce4525be6 100644
3e5111
--- a/src/rpc/virnetprotocol.x
3e5111
+++ b/src/rpc/virnetprotocol.x
3e5111
@@ -40,13 +40,13 @@ const VIR_NET_MESSAGE_INITIAL = 65536;
3e5111
 const VIR_NET_MESSAGE_LEGACY_PAYLOAD_MAX = 262120;
3e5111
 
3e5111
 /* Maximum total message size (serialised). */
3e5111
-const VIR_NET_MESSAGE_MAX = 16777216;
3e5111
+const VIR_NET_MESSAGE_MAX = 33554432;
3e5111
 
3e5111
 /* Size of struct virNetMessageHeader (serialised)*/
3e5111
 const VIR_NET_MESSAGE_HEADER_MAX = 24;
3e5111
 
3e5111
 /* Size of message payload */
3e5111
-const VIR_NET_MESSAGE_PAYLOAD_MAX = 16777192;
3e5111
+const VIR_NET_MESSAGE_PAYLOAD_MAX = 33554408;
3e5111
 
3e5111
 /* Size of message length field. Not counted in VIR_NET_MESSAGE_MAX
3e5111
  * and VIR_NET_MESSAGE_INITIAL.
3e5111
-- 
3e5111
2.13.0
3e5111