tcp\-workers: INT
background\-workers: INT
async\-start: BOOL
- tcp\-handshake\-timeout: TIME
tcp\-idle\-timeout: TIME
tcp\-reply\-timeout: TIME
max\-tcp\-clients: INT
responding immediately with SERVFAIL answers until the zone loads.
.sp
\fIDefault:\fP off
-.SS tcp\-handshake\-timeout
-.sp
-Maximum time between newly accepted TCP connection and the first query.
-This is useful to disconnect inactive connections faster than connections
-that already made at least 1 meaningful query.
-.sp
-\fIDefault:\fP 5
.SS tcp\-idle\-timeout
.sp
-Maximum idle time between requests on a TCP connection. This also limits
-receiving of a single query, each query must be received in this time limit.
+Maximum idle time between requests on an incoming TCP connection.
.sp
\fIDefault:\fP 20
.SS tcp\-reply\-timeout
tcp-workers: INT
background-workers: INT
async-start: BOOL
- tcp-handshake-timeout: TIME
tcp-idle-timeout: TIME
tcp-reply-timeout: TIME
max-tcp-clients: INT
*Default:* off
-.. _server_tcp-handshake-timeout:
-
-tcp-handshake-timeout
----------------------
-
-Maximum time between newly accepted TCP connection and the first query.
-This is useful to disconnect inactive connections faster than connections
-that already made at least 1 meaningful query.
-
-*Default:* 5
-
.. _server_tcp-idle-timeout:
tcp-idle-timeout
----------------
-Maximum idle time between requests on a TCP connection. This also limits
-receiving of a single query, each query must be received in this time limit.
+Maximum idle time between requests on an incoming TCP connection.
*Default:* 20
}
conf->cache.srv_max_ipv6_udp_payload = conf_int(&val);
- val = conf_get(conf, C_SRV, C_TCP_HSHAKE_TIMEOUT);
- conf->cache.srv_tcp_hshake_timeout = conf_int(&val);
-
val = conf_get(conf, C_SRV, C_TCP_IDLE_TIMEOUT);
conf->cache.srv_tcp_idle_timeout = conf_int(&val);
-/* Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
struct {
int16_t srv_max_ipv4_udp_payload;
int16_t srv_max_ipv6_udp_payload;
- int32_t srv_tcp_hshake_timeout;
int32_t srv_tcp_idle_timeout;
int32_t srv_tcp_reply_timeout;
int32_t srv_max_tcp_clients;
-/* Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
int check_server(
knotd_conf_check_args_t *args)
{
+ conf_val_t hshake = conf_get_txn(args->extra->conf, args->extra->txn, C_SRV,
+ C_TCP_HSHAKE_TIMEOUT);
+
+ if (hshake.code == KNOT_EOK) {
+ CONF_LOG(LOG_NOTICE, "TCP handshake timeout no longer supported");
+ }
+
return KNOT_EOK;
}