[asterisk-commits] russell: branch russell/ast_cli_tls r38098 - /team/russell/ast_cli_tls/cli.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Jul 22 20:22:58 MST 2006


Author: russell
Date: Sat Jul 22 22:22:57 2006
New Revision: 38098

URL: http://svn.digium.com/view/asterisk?rev=38098&view=rev
Log:
i seriously underestimated the buffer size needed for ast_cli, so increase it
from 256 bytes to 16k.  I still don't think this is so bad, because the buffer
will only be allocatted in threads that call ast_cli(), which are probably only
the threads created to handle asterisk consoles.

Modified:
    team/russell/ast_cli_tls/cli.c

Modified: team/russell/ast_cli_tls/cli.c
URL: http://svn.digium.com/view/asterisk/team/russell/ast_cli_tls/cli.c?rev=38098&r1=38097&r2=38098&view=diff
==============================================================================
--- team/russell/ast_cli_tls/cli.c (original)
+++ team/russell/ast_cli_tls/cli.c Sat Jul 22 22:22:57 2006
@@ -54,7 +54,7 @@
 static pthread_key_t ast_cli_buf_key;
 static pthread_once_t ast_cli_buf_once = PTHREAD_ONCE_INIT;
 
-#define AST_CLI_MAXSTRLEN   256
+#define AST_CLI_MAXSTRLEN   16384
 
 static void ast_cli_buf_key_create(void)
 {



More information about the asterisk-commits mailing list