render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
43fe83
From 68d414af5fc764e92cc3beadc700964fdb348b1b Mon Sep 17 00:00:00 2001
43fe83
Message-Id: <68d414af5fc764e92cc3beadc700964fdb348b1b.1382534060.git.jdenemar@redhat.com>
43fe83
From: Claudio Bley <cbley@av-test.de>
43fe83
Date: Wed, 16 Oct 2013 23:12:56 +0800
43fe83
Subject: [PATCH] Adjust legacy max payload size to account for header
43fe83
 information
43fe83
43fe83
https://bugzilla.redhat.com/show_bug.cgi?id=950416
43fe83
43fe83
Commit 27e81517a87 set the payload size to 256 KB, which is
43fe83
actually the max packet size, including the size of the header.
43fe83
43fe83
Reduce this by VIR_NET_MESSAGE_HEADER_MAX (24) and set
43fe83
VIR_NET_MESSAGE_LEGACY_PAYLOAD_MAX to 262120, which was the original
43fe83
value before increasing the limit in commit eb635de1fed.
43fe83
(cherry picked from commit 609eb987c6cef9082486e66b666f7b9351b783ed)
43fe83
43fe83
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
43fe83
---
43fe83
 src/rpc/virnetprotocol.x | 2 +-
43fe83
 1 file changed, 1 insertion(+), 1 deletion(-)
43fe83
43fe83
diff --git a/src/rpc/virnetprotocol.x b/src/rpc/virnetprotocol.x
43fe83
index 1eae7cb..7b6f753 100644
43fe83
--- a/src/rpc/virnetprotocol.x
43fe83
+++ b/src/rpc/virnetprotocol.x
43fe83
@@ -55,7 +55,7 @@ const VIR_NET_MESSAGE_INITIAL = 65536;
43fe83
  * payload size. We need to remember this for compat with
43fe83
  * old clients.
43fe83
  */
43fe83
-const VIR_NET_MESSAGE_LEGACY_PAYLOAD_MAX = 262144;
43fe83
+const VIR_NET_MESSAGE_LEGACY_PAYLOAD_MAX = 262120;
43fe83
 
43fe83
 /* Maximum total message size (serialised). */
43fe83
 const VIR_NET_MESSAGE_MAX = 16777216;
43fe83
-- 
43fe83
1.8.4
43fe83