bind9/lib/dns
Ondřej Surý 96ef98558c
Don't enable timeouts in dns_dispatch for incoming transfers
The dns_dispatch_add() call in the dns_xfrin unit had hardcoded 30
second limit.  This meant that any incoming transfer would be stopped in
it didn't finish within 30 seconds limit.  Additionally, dns_xfrin
callback was ignoring the return value from dns_dispatch_getnext() when
restarting the reading from the TCP stream; this could cause transfers
to get stuck waiting for a callback that would never come due to the
dns_dispatch having already been shut down.

Call the dns_dispatch_add() without a timeout and properly handle the
result code from the dns_dispatch_getnext().
2024-09-21 10:15:47 +02:00
..
include Update code formatting 2024-09-20 17:26:33 +02:00
rdata Use clang-format-19 to update formatting 2024-08-22 09:21:55 +02:00
.gitignore Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
acl.c Fix RCU API usage in acl.c 2024-09-10 09:54:20 +00:00
adb.c Use atomics to access find->status 2024-08-28 22:42:16 +00:00
badcache.c Refactor dns_badcache to use cds_lfht lock-free hashtable 2023-07-31 15:51:15 +02:00
byaddr.c remove isc_task completely 2023-02-16 18:35:32 +01:00
cache.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
callbacks.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
catz.c Merge tag 'v9.21.0' 2024-08-21 16:23:09 +02:00
client.c make "max_restarts" a configurable value 2024-08-07 13:03:08 -07:00
clientinfo.c refactor dns_clientinfo_init(); use separate function to set ECS 2023-02-07 23:48:22 -08:00
compress.c Cleanup the dns_name macros 2023-09-12 16:14:10 +02:00
db.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
db_p.h Fix the glue table in the QP and RBT zone databases 2024-08-05 15:36:54 +02:00
dbiterator.c Implement dns_db node tracing 2023-02-28 11:44:15 +01:00
diff.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
dispatch.c Modify dns_dispatch API to accept zero timeout 2024-09-21 10:15:37 +02:00
dlz.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
dns64.c Add the ability to use DNS64 internally 2023-09-13 14:31:43 +10:00
dnssec.c Don't read private key files for offline KSKs 2024-08-22 08:21:52 +02:00
dnstap.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
dnstap.proto Update the dnstap protobuf definition 2024-04-26 16:08:46 +03:00
ds.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 08:33:43 +01:00
dst_api.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
dst_internal.h Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
dst_openssl.h Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
dst_parse.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
dst_parse.h Remove TKEY Mode 2 (Diffie-Hellman) 2023-03-08 08:36:25 +01:00
dyndb.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
ecs.c Remove do-nothing header <isc/print.h> 2023-02-15 16:44:47 +00:00
fixedname.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
forward.c reduce memory consumption of the remaining QP databases 2024-03-14 10:25:07 -07:00
gen.c Use EXIT_SUCCESS and EXIT_FAILURE 2024-02-08 08:01:58 +01:00
geoip2.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
gssapi_link.c Initialize the DST subsystem implicitly 2024-08-07 17:03:27 +02:00
gssapictx.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
hmac_link.c Remove logging context (isc_log_t) from the public namespace 2024-08-20 12:50:39 +00:00
ipkeylist.c Remove ISC_MEM_ZERO and isc_mem_*x() API 2023-08-31 22:08:35 +02:00
iptable.c Convert manual dns_iptable_{attach,detach} to ISC_REFCOUNT_IMPL 2023-10-13 14:44:40 +02:00
journal.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
kasp.c Check key tag range when matching dnssec keys to kasp keys 2024-08-22 12:12:02 +00:00
key.c Use dst_key's directory when writing key files 2024-01-25 14:47:43 +01:00
keydata.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
keymgr.c Fix bug in dns_keymgr_offline 2024-09-03 11:57:56 +02:00
keystore.c Remove logging context (isc_log_t) from the public namespace 2024-08-20 12:50:39 +00:00
keytable.c reduce memory consumption of the remaining QP databases 2024-03-14 10:25:07 -07:00
Makefile.am Remove DNSRPS implementation 2024-09-18 17:39:14 +02:00
master.c Remove infinite loop on ISC_R_NOFILE 2024-05-07 10:01:12 +10:00
masterdump.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
message.c Move offloaded DNSSEC operations to different helper threads 2024-09-12 12:09:45 +00:00
name.c include the nodenames when calculating memory to purge 2024-04-30 12:50:01 -07:00
nametree.c get foundname from the node 2024-04-30 12:50:01 -07:00
ncache.c Use atomic operations to access the trust byte in ncache data 2024-04-17 17:14:34 +02:00
nsec.c Remove TKEY Mode 2 (Diffie-Hellman) 2023-03-08 08:36:25 +01:00
nsec3.c dns_difftuple_create() cannot fail 2024-08-05 13:31:38 +00:00
nta.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
openssl_link.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
openssl_shim.h Move the dst__openssl_toresult to isc_tls unit 2024-08-08 11:59:41 +02:00
opensslecdsa_link.c use deterministic ecdsa for openssl >= 3.2 2024-08-14 14:34:44 +03:00
openssleddsa_link.c Initialize the DST subsystem implicitly 2024-08-07 17:03:27 +02:00
opensslrsa_link.c Initialize the DST subsystem implicitly 2024-08-07 17:03:27 +02:00
order.c Update sources to Clang 15 formatting 2022-11-29 08:54:34 +01:00
peer.c Implement the 'request-ixfr-max-diffs' configuration option 2024-08-22 13:42:27 +00:00
private.c Update the source code formatting using clang-format-17 2023-10-17 17:47:46 +02:00
probes.d Do not destroy IXFR journal in xfrin_end() 2023-12-20 17:21:14 +01:00
qp.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
qp_p.h rename QP-related types to use standard BIND nomenclature 2023-09-28 00:32:39 -07:00
qpcache.c rename 'rbtiterator' and similar names in qpcache 2024-09-19 19:32:27 +00:00
qpcache_p.h rename qpdb to qpcache 2024-03-08 15:36:56 -08:00
qpzone.c Return partial match when requested 2024-08-29 12:48:20 +00:00
qpzone_p.h stub dns_qpmulti-based zone database implementation 2024-03-06 20:57:31 -08:00
rbt-cachedb.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
rbt-zonedb.c Return partial match when requested 2024-08-29 12:48:20 +00:00
rbt.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
rbtdb.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
rbtdb_p.h Fix the glue table in the QP and RBT zone databases 2024-08-05 15:36:54 +02:00
rcode.c Update code formatting 2024-09-10 17:31:32 +02:00
rdata.c Properly reject zero length ALPN in commatxt_fromtext 2024-08-01 10:20:55 +10:00
rdatalist.c Give the rdataset->privateN fields more helpful names 2023-07-17 14:50:25 +02:00
rdataset.c Apply the isc_mem_cget semantic patch 2023-08-31 22:08:35 +02:00
rdatasetiter.c Implement dns_db node tracing 2023-02-28 11:44:15 +01:00
rdataslab.c Use clang-format-19 to update formatting 2024-08-22 09:21:55 +02:00
remote.c Apply the isc_mem_cget semantic patch 2023-08-31 22:08:35 +02:00
request.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
resconf.c Address CID 486326: Memory - corruptions (OVERRUN) 2024-02-13 09:21:49 +11:00
resolver.c Implement the ForwardOnlyFail statistics channel counter 2024-09-16 09:31:14 +00:00
result.c Refactor how we map isc_result_t <-> dns_rcode_t 2023-06-15 15:32:04 +02:00
rootns.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
rpz.c Remove DNSRPS implementation 2024-09-18 17:39:14 +02:00
rriterator.c Apply the SET_IF_NOT_NULL() semantic patch 2023-08-15 12:21:41 +02:00
rrl.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
sdlz.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
skr.c Implement SKR import 2024-08-22 08:21:52 +02:00
soa.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 08:33:43 +01:00
ssu.c Remove logging context (isc_log_t) from the public namespace 2024-08-20 12:50:39 +00:00
ssu_external.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
stats.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
time.c Remove isc_stdtime_get() macro 2023-03-31 13:33:16 +02:00
tkey.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
transport.c Integrate TLS cipher suites support into BIND 2024-01-12 13:27:59 +02:00
tsig.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
tsig_p.h remove dns__tsig_algallocated() 2023-06-14 08:14:38 +00:00
ttl.c Remove do-nothing header <isc/print.h> 2023-02-15 16:44:47 +00:00
update.c Disable some behavior in offline-ksk mode 2024-08-22 08:21:52 +02:00
validator.c Merge tag 'v9.21.1' 2024-09-18 18:02:41 +02:00
view.c remove the "dialup" and "heartbeat-interval" options 2024-08-22 11:11:10 -07:00
xfrin.c Don't enable timeouts in dns_dispatch for incoming transfers 2024-09-21 10:15:47 +02:00
zone.c Set logging category for notify/xfer related messages 2024-09-17 15:08:40 +00:00
zone_p.h Refactor findzonekeys 2024-01-25 14:48:07 +01:00
zonekey.c Update sources to Clang 15 formatting 2022-11-29 08:54:34 +01:00
zoneverify.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
zt.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00