value set using this parameter will automatically be rounded up to the next
multiple of 8 on 32-bit machines and 16 on 64-bit machines.
-tune.bufsize.small <number>
+tune.bufsize.small <size>
Sets the size in bytes for small buffers. The defaults value is 1024.
These buffers are designed to be used in some specific contexts where memory
int runqueue_depth;/* max number of tasks to run at once */
uint recv_enough; /* how many input bytes at once are "enough" */
uint bufsize; /* buffer size in bytes, defaults to BUFSIZE */
- int bufsize_small; /* small buffer size in bytes */
+ uint bufsize_small;/* small buffer size in bytes */
int maxrewrite; /* buffer max rewrite size in bytes, defaults to MAXREWRITE */
int reserved_bufs; /* how many buffers can only be allocated for response */
int buf_limit; /* if not null, how many total buffers may only be allocated */
struct proxy *curpx, const struct proxy *defpx,
const char *file, int line, char **err)
{
- int size;
+ const char *res;
+ uint size;
if (too_many_args(1, args, err, NULL))
goto err;
goto err;
}
- size = atol(args[1]);
+ res = parse_size_err(args[1], &size);
+ if (res != NULL) {
+ memprintf(err, "unexpected '%s' after size passed to '%s'", res, args[0]);
+ goto err;
+ }
+
if (size <= 0) {
memprintf(err, "'%s' expects a positive integer argument.\n", args[0]);
goto err;