Forráskód Böngészése

ctl: increased default buffers size for rpc responses

 - binrpc_max_body_size = 32
 - binrpc_struct_max_body_size = 8
Daniel-Constantin Mierla 10 éve
szülő
commit
19756eecb2
3 módosított fájl, 11 hozzáadás és 10 törlés
  1. 4 4
      modules/ctl/README
  2. 3 2
      modules/ctl/binrpc_run.c
  3. 4 4
      modules/ctl/doc/ctl_params.xml

+ 4 - 4
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
 

+ 3 - 2
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

+ 4 - 4
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>