bind9/lib/isc/netmgr
Artem Boldariev e616d7f240 TLS DNS: do not call accept callback twice
Before the changes from this commit were introduced, the accept
callback function will get called twice when accepting connection
during two of these stages:

* when accepting the TCP connection;
* when handshake has completed.

That is clearly an error, as it should have been called only once. As
far as I understand it the mistake is a result of TLS DNS transport
being essentially a fork of TCP transport, where calling the accept
callback immediately after accepting TCP connection makes sense.

This commit fixes this mistake. It did not have any very serious
consequences because in BIND the accept callback only checks an ACL
and updates stats.
2022-06-15 14:21:11 +03:00
..
http.c Fix an abort in DoH (client-side) when writing on closing sock 2022-05-20 20:18:40 +03:00
netmgr-int.h Gracefully handle uv_read_start() failures 2022-06-14 11:33:02 +02:00
netmgr.c Gracefully handle uv_read_start() failures 2022-06-14 11:33:02 +02:00
socket.c Move netmgr/uv-compat.h to <isc/uv.h> 2022-05-03 10:02:19 +02:00
tcp.c Gracefully handle uv_read_start() failures 2022-06-14 11:33:02 +02:00
tcpdns.c Gracefully handle uv_read_start() failures 2022-06-14 11:33:02 +02:00
timer.c Move netmgr/uv-compat.h to <isc/uv.h> 2022-05-03 10:02:19 +02:00
tlsdns.c TLS DNS: do not call accept callback twice 2022-06-15 14:21:11 +03:00
tlsstream.c TLS stream/DoH: implement TLS client session resumption 2022-05-20 20:17:45 +03:00
udp.c Gracefully handle uv_read_start() failures 2022-06-14 11:33:02 +02:00