mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-06 05:32:05 -04:00
Merge branch '2797-cfg-net-buf-sizes' into 'main'
fix tcp-send-buffer, udp-receive-buffer, udp-send-buffer limits Closes #2797 See merge request isc-projects/bind9!5235
This commit is contained in:
commit
f4c4217eec
1 changed files with 5 additions and 5 deletions
|
|
@ -8892,11 +8892,11 @@ load_configuration(const char *filename, named_server_t *server,
|
|||
isc_nm_settimeouts(named_g_netmgr, initial, idle, keepalive,
|
||||
advertised);
|
||||
|
||||
#define CAP_IF_NOT_ZERO(v, min, max) \
|
||||
if (v > 0 && v < min) { \
|
||||
recv_tcp_buffer_size = min; \
|
||||
} else if (v > max) { \
|
||||
recv_tcp_buffer_size = max; \
|
||||
#define CAP_IF_NOT_ZERO(v, min, max) \
|
||||
if (v > 0 && v < min) { \
|
||||
v = min; \
|
||||
} else if (v > max) { \
|
||||
v = max; \
|
||||
}
|
||||
|
||||
/* Set the kernel send and receive buffer sizes */
|
||||
|
|
|
|||
Loading…
Reference in a new issue