Module: kamailio
Branch: master
Commit: 19756eecb2048320182667cc440cfa7d275304c9
URL:
https://github.com/kamailio/kamailio/commit/19756eecb2048320182667cc440cfa7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-11-02T13:30:32+01:00
ctl: increased default buffers size for rpc responses
- binrpc_max_body_size = 32
- binrpc_struct_max_body_size = 8
---
Modified: modules/ctl/README
Modified: modules/ctl/binrpc_run.c
Modified: modules/ctl/doc/ctl_params.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/19756eecb2048320182667cc440cfa7…
Patch:
https://github.com/kamailio/kamailio/commit/19756eecb2048320182667cc440cfa7…
---
diff --git a/modules/ctl/README b/modules/ctl/README
index 09f35d4..2de6fcb 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 c4b7297..2355a50 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 3bd2553..09041bd 100644
--- a/modules/ctl/doc/ctl_params.xml
+++ b/modules/ctl/doc/ctl_params.xml
@@ -200,13 +200,13 @@ modparam("ctl", "autoconversion", 1)
kilobytes.
</para>
<para>
- Default: 4 (meaning 4KB);
+ Default: 32 (meaning 32KB);
</para>
<example>
<title>Set the <varname>binrpc_max_body_size</varname> parameter
</title>
<programlisting>
-modparam("ctl", "binrpc_max_body_size", 10)
+modparam("ctl", "binrpc_max_body_size", 16)
</programlisting>
</example>
</section>
@@ -218,13 +218,13 @@ modparam("ctl", "binrpc_max_body_size", 10)
kilobytes.
</para>
<para>
- Default: 1 (meaning 1KB);
+ Default: 8 (meaning 8KB);
</para>
<example>
<title>Set the <varname>binrpc_struct_max_body_size</varname>
parameter
</title>
<programlisting>
-modparam("ctl", "binrpc_struct_max_body_size", 3)
+modparam("ctl", "binrpc_struct_max_body_size", 4)
</programlisting>
</example>
</section>