bind9/lib/isc
Ondřej Surý a017ba2615 Fix TCPDNS and TLSDNS timers
After the TCPDNS refactoring the initial and idle timers were broken and
only the tcp-initial-timeout was always applied on the whole TCP
connection.

This broke any TCP connection that took longer than tcp-initial-timeout,
most often this would affect large zone AXFRs.

This commit changes the timeout logic in this way:

  * On TCP connection accept the tcp-initial-timeout is applied
    and the timer is started
  * When we are processing and/or sending any DNS message the timer is
    stopped
  * When we stop processing all DNS messages, the tcp-idle-timeout
    is applied and the timer is started again
2021-03-18 15:16:13 +01:00
..
include Fix TCPDNS and TLSDNS timers 2021-03-18 15:16:13 +01:00
netmgr Fix TCPDNS and TLSDNS timers 2021-03-18 15:16:13 +01:00
pthreads Change the isc_thread_self() return type to uintptr_t 2021-02-26 21:14:17 +01:00
tests Assigning uint64_t from buffer might be misaligned in netmgr tests 2021-03-04 15:29:44 +01:00
unix Reformat sources using clang-format-11 2020-12-08 19:34:05 +01:00
win32 Fix TCPDNS and TLSDNS timers 2021-03-18 15:16:13 +01:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
aes.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
app.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
assertions.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
astack.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
backtrace-emptytbl.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
backtrace.c Fix getrbp() 2020-10-30 09:12:50 +01:00
base32.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
base64.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
bind9.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
buffer.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
bufferlist.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
commandline.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
counter.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
crc64.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
entropy.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
entropy_private.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
error.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
event.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
fsaccess.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
hash.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
heap.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
hex.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
hmac.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
hp.c Use globally assigned thread_id in the isc_hp API 2021-02-26 21:14:17 +01:00
ht.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
httpd.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
iterated_hash.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lex.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
lfsr.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
lib.c Make linker include library ctor/dtor in statically linked libisc 2021-02-26 21:19:33 +01:00
lib_p.h Call isc__initialize()/isc__shutdown() from win32 DllMain 2021-03-02 08:50:29 +01:00
log.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Makefile.in Add isc_trampoline API to have simple accounting around threads 2021-02-26 21:14:17 +01:00
md.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
mem.c Make linker include library ctor/dtor in statically linked libisc 2021-02-26 21:19:33 +01:00
mem_p.h Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
mutexblock.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
netaddr.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
netscope.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
nonce.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
openssl_shim.c Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
openssl_shim.h Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
parseint.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pk11.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pk11_result.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pool.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
portset.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
queue.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
quota.c Refactor netmgr and add more unit tests 2020-12-09 10:46:16 +01:00
radix.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
random.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ratelimiter.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
regex.c Reformat sources using clang-format-11 2020-12-08 19:34:05 +01:00
region.c Reformat sources using clang-format-11 2020-12-08 19:34:05 +01:00
result.c netmgr: server-side TLS support 2020-12-09 10:46:16 +01:00
rwlock.c Change the isc_thread_self() return type to uintptr_t 2021-02-26 21:14:17 +01:00
safe.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
serial.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
siphash.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
sockaddr.c netmgr: server-side TLS support 2020-12-09 10:46:16 +01:00
stats.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
string.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
symtab.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
task.c Change the isc_thread_self() return type to uintptr_t 2021-02-26 21:14:17 +01:00
task_p.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
taskpool.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
timer.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
timer_p.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
tls.c Stop using deprecated calls in lib/isc/tls.c 2021-03-18 10:15:44 +11:00
tls_p.h Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
tm.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
trampoline.c Change the isc_thread_self() return type to uintptr_t 2021-02-26 21:14:17 +01:00
trampoline_p.h Add isc_trampoline API to have simple accounting around threads 2021-02-26 21:14:17 +01:00
utf8.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
version.c Use -release instead of -version-info for internal library SONAMEs 2021-01-25 15:28:09 +01:00
xoshiro128starstar.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00