Browse Source

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 <[email protected]>
Reported-by: Juha Heinanen  jh tutpro com
Andrei Pelinescu-Onciul 15 years ago
parent
commit
70ffe3dd1a
1 changed files with 4 additions and 5 deletions
  1. 4 5
      utils/sercmd/sercmd.c

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