Skip to content

Commit

Permalink
jsonrpc: increase input buffer size from 512 to 4096
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
LorenzoBianconi authored and blp committed Nov 21, 2019
1 parent 30227d3 commit a451bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonrpc.c
Expand Up @@ -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. */
Expand Down

0 comments on commit a451bfa

Please sign in to comment.