33 lines
904 B
Diff
33 lines
904 B
Diff
|
|
From a451bfa8b0b7d5930d92497eccd29a6d2b781b8b Mon Sep 17 00:00:00 2001
|
||
|
|
From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
|
||
|
|
Date: Wed, 6 Nov 2019 11:19:44 +0200
|
||
|
|
Subject: jsonrpc: increase input buffer size from 512 to 4096
|
||
|
|
|
||
|
|
Increase jsonrpc input buffer size from 512 to 4096 bytes in order to
|
||
|
|
reduce the syscall overhead when downloading huge db size
|
||
|
|
|
||
|
|
Acked-by: Mark Michelson <mmichels@redhat.com>
|
||
|
|
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
|
||
|
|
Signed-off-by: Ben Pfaff <blp@ovn.org>
|
||
|
|
---
|
||
|
|
lib/jsonrpc.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c
|
||
|
|
index b9619b822..ed748dbde 100644
|
||
|
|
--- a/lib/jsonrpc.c
|
||
|
|
+++ b/lib/jsonrpc.c
|
||
|
|
@@ -43,7 +43,7 @@ struct jsonrpc {
|
||
|
|
|
||
|
|
/* Input. */
|
||
|
|
struct byteq input;
|
||
|
|
- uint8_t input_buffer[512];
|
||
|
|
+ uint8_t input_buffer[4096];
|
||
|
|
struct json_parser *parser;
|
||
|
|
|
||
|
|
/* Output. */
|
||
|
|
--
|
||
|
|
2.14.1
|
||
|
|
|
||
|
|
|