Module: sip-router Branch: master Commit: 70ffe3dd1aa0e15e715e34cd0f3fec4c5115caac URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=70ffe3dd...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Wed Sep 22 12:33:12 2010 +0200
sercmd: increase internal buffers
Increase sizes for maximum reply and maximum body (send) to 64k, maximum command arguments number to 256 and maximum line size to 16k.
Reported-by: Daniel-Constantin Mierla miconda@gmail.com Reported-by: Juha Heinanen jh tutpro com
---
utils/sercmd/sercmd.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/utils/sercmd/sercmd.c b/utils/sercmd/sercmd.c index a309b3f..7c071ed 100644 --- a/utils/sercmd/sercmd.c +++ b/utils/sercmd/sercmd.c @@ -74,11 +74,10 @@ #endif
#define IOVEC_CNT 20 -#define BUF_SIZE 65535 -#define MAX_LINE_SIZE 1024 /* for non readline mode */ -#define MAX_REPLY_SIZE 4096 -#define MAX_BODY_SIZE 4096 -#define MAX_BINRPC_ARGS 128 +#define MAX_LINE_SIZE 16384 /* for non readline mode */ +#define MAX_REPLY_SIZE 65536 +#define MAX_BODY_SIZE 65536 +#define MAX_BINRPC_ARGS 256
#ifndef UNIX_PATH_MAX