bind9/lib
Ondřej Surý 6fbf582f18 Cleanup the nmhandle attach/detach in httpd.c
In httpd.c, the send callback can directly call read callback without
calling isc_nm_resumeread().  When per-send timeout was added, this
could lead to use-after-free when shutting down the named.

Cleanup the way how we attach to .readhandle and .sendhandle, so there's
assurance that .readhandle will be always non-NULL when reading and
.sendhandle will be always non-NULL when sending.

Additionally, it was found that the implementation ignored the
"Connection: close" header and it worked only accidentally by closing
the connection after the first read from the TCP socket.  This has been
also fixed.

(cherry picked from commit 49c804f8b7)
2022-03-11 10:52:22 +01:00
..
bind9 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
dns Remove usage of deprecated ATOMIC_VAR_INIT() macro 2022-03-09 09:25:37 +01:00
irs Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
isc Cleanup the nmhandle attach/detach in httpd.c 2022-03-11 10:52:22 +01:00
isccc Use ISC_R_SHUTTINGDOWN to detect netmgr shutting down 2022-01-13 09:14:12 +01:00
isccfg Check dnssec-policy key roles for validity 2022-03-08 14:28:53 +11:00
ns Remove usage of deprecated ATOMIC_VAR_INIT() macro 2022-03-09 09:25:37 +01:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
Makefile.am move samples/resolve.c to bin/tests/system 2021-04-16 14:29:43 +02:00
unit-test-driver.sh.in Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00