mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Use optimal message sizes to improve compression in AXFRs (#40996)
This commit is contained in:
@@ -5814,6 +5814,7 @@ load_configuration(const char *filename, ns_server_t *server,
|
||||
isc_uint32_t interface_interval;
|
||||
isc_uint32_t reserved;
|
||||
isc_uint32_t udpsize;
|
||||
isc_uint32_t transfer_message_size;
|
||||
ns_cache_t *nsc;
|
||||
ns_cachelist_t cachelist, tmpcachelist;
|
||||
ns_cfgctx_t *nzctx;
|
||||
@@ -6128,6 +6129,17 @@ load_configuration(const char *filename, ns_server_t *server,
|
||||
udpsize = 4096;
|
||||
ns_g_udpsize = (isc_uint16_t)udpsize;
|
||||
|
||||
/* Set the transfer message size for TCP */
|
||||
obj = NULL;
|
||||
result = ns_config_get(maps, "transfer-message-size", &obj);
|
||||
INSIST(result == ISC_R_SUCCESS);
|
||||
transfer_message_size = cfg_obj_asuint32(obj);
|
||||
if (transfer_message_size < 512)
|
||||
transfer_message_size = 512;
|
||||
else if (transfer_message_size > 65535)
|
||||
transfer_message_size = 65535;
|
||||
server->transfer_tcp_message_size = (isc_uint16_t) transfer_message_size;
|
||||
|
||||
/*
|
||||
* Configure the zone manager.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user