See also: tune.renice.runtime
-tune.rcvbuf.backend <number>
-tune.rcvbuf.frontend <number>
+tune.rcvbuf.backend <size>
+tune.rcvbuf.frontend <size>
For the kernel socket receive buffer size on non-connected sockets to this
size. This can be used QUIC in listener mode and log-forward on the frontend.
The default system buffers might sometimes be too small for sockets receiving
massive traffic, at the expense of a higher impact on this large traffic.
For regular usage it is better to leave this off. The default value is off.
-tune.sndbuf.backend <number>
-tune.sndbuf.frontend <number>
+tune.sndbuf.backend <size>
+tune.sndbuf.frontend <size>
For the kernel socket send buffer size on non-connected sockets to this size.
This can be used for UNIX socket and UDP logging on the backend side, and for
QUIC in listener mode on the frontend. The default system buffers might
uint client_rcvbuf; /* set client rcvbuf to this value if not null */
uint server_sndbuf; /* set server sndbuf to this value if not null */
uint server_rcvbuf; /* set server rcvbuf to this value if not null */
- int frontend_sndbuf; /* set frontend dgram sndbuf to this value if not null */
- int frontend_rcvbuf; /* set frontend dgram rcvbuf to this value if not null */
- int backend_sndbuf; /* set backend dgram sndbuf to this value if not null */
- int backend_rcvbuf; /* set backend dgram rcvbuf to this value if not null */
+ uint frontend_sndbuf; /* set frontend dgram sndbuf to this value if not null */
+ uint frontend_rcvbuf; /* set frontend dgram rcvbuf to this value if not null */
+ uint backend_sndbuf; /* set backend dgram sndbuf to this value if not null */
+ uint backend_rcvbuf; /* set backend dgram rcvbuf to this value if not null */
int pipesize; /* pipe size in bytes, system defaults if zero */
int max_http_hdr; /* max number of HTTP headers, use MAX_HTTP_HDR if zero */
int requri_len; /* max len of request URI, use REQURI_LEN if zero */
const struct proxy *defpx, const char *file, int line,
char **err)
{
- int *valptr;
- int val;
+ const char *res;
+ uint *valptr;
+ uint val;
if (too_many_args(1, args, err, NULL))
return -1;
return 1;
}
- val = atoi(args[1]);
+ res = parse_size_err(args[1], &val);
+ if (res != NULL) {
+ memprintf(err, "parsing [%s:%d]: unexpected '%s' after size passed to '%s'", file, line, res, args[0]);
+ return -1;
+ }
if (*(args[1]) == 0 || val <= 0) {
memprintf(err, "parsing [%s:%d] : '%s' expects a strictly positive integer argument.\n", file, line, args[0]);