From 19756eecb2048320182667cc440cfa7d275304c9 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 2 Nov 2015 13:30:32 +0100 Subject: [PATCH] ctl: increased default buffers size for rpc responses - binrpc_max_body_size = 32 - binrpc_struct_max_body_size = 8 --- modules/ctl/README | 8 ++++---- modules/ctl/binrpc_run.c | 5 +++-- modules/ctl/doc/ctl_params.xml | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/modules/ctl/README b/modules/ctl/README index 09f35d48423..2de6fcb0121 100644 --- a/modules/ctl/README +++ b/modules/ctl/README @@ -235,20 +235,20 @@ modparam("ctl", "autoconversion", 1) Set the size of binrpc buffer for RPC reply. Value represents kilobytes. - Default: 4 (meaning 4KB); + Default: 32 (meaning 32KB); Example 1.8. Set the binrpc_max_body_size parameter -modparam("ctl", "binrpc_max_body_size", 10) +modparam("ctl", "binrpc_max_body_size", 16) 3.8. binrpc_struct_max_body_size (integer) Set the size of binrpc structure buffer for RPC reply. Value represents kilobytes. - Default: 1 (meaning 1KB); + Default: 8 (meaning 8KB); Example 1.9. Set the binrpc_struct_max_body_size parameter -modparam("ctl", "binrpc_struct_max_body_size", 3) +modparam("ctl", "binrpc_struct_max_body_size", 4) 4. SIP-router RPC Functions diff --git a/modules/ctl/binrpc_run.c b/modules/ctl/binrpc_run.c index c4b72977a07..2355a500873 100644 --- a/modules/ctl/binrpc_run.c +++ b/modules/ctl/binrpc_run.c @@ -36,8 +36,9 @@ rpc->scan (default: not set) */ int autoconvert=0; -int binrpc_max_body_size = 4; /* multiplied by 1024 in mod init */ -int binrpc_struct_max_body_size = 1; /* multiplied by 1024 in mod init */ +int binrpc_max_body_size = 32; /* multiplied by 1024 in mod init */ +int binrpc_struct_max_body_size = 8; /* multiplied by 1024 in mod init */ + #define BINRPC_MAX_BODY binrpc_max_body_size /* maximum body for send */ #define STRUCT_MAX_BODY binrpc_struct_max_body_size #define MAX_MSG_CHUNKS 96 diff --git a/modules/ctl/doc/ctl_params.xml b/modules/ctl/doc/ctl_params.xml index 3bd2553ee83..09041bda490 100644 --- a/modules/ctl/doc/ctl_params.xml +++ b/modules/ctl/doc/ctl_params.xml @@ -200,13 +200,13 @@ modparam("ctl", "autoconversion", 1) kilobytes. - Default: 4 (meaning 4KB); + Default: 32 (meaning 32KB); Set the <varname>binrpc_max_body_size</varname> parameter -modparam("ctl", "binrpc_max_body_size", 10) +modparam("ctl", "binrpc_max_body_size", 16) @@ -218,13 +218,13 @@ modparam("ctl", "binrpc_max_body_size", 10) kilobytes. - Default: 1 (meaning 1KB); + Default: 8 (meaning 8KB); Set the <varname>binrpc_struct_max_body_size</varname> parameter -modparam("ctl", "binrpc_struct_max_body_size", 3) +modparam("ctl", "binrpc_struct_max_body_size", 4)