bind9/bin
Tony Finch 1ddf2b87f5
Improve statschannel HTTP Connection: header protocol conformance
In HTTP/1.0 and HTTP/1.1, RFC 9112 section 9.6 says the last response
in a connection should include a `Connection: close` header, but the
statschannel server omitted it.

In an HTTP/1.0 response, the statschannel server can sometimes send a
`Connection: keep-alive` header when it is about to close the
connection. There are two ways:

If the first request on a connection is keep-alive and the second
request is not, then _both_ responses have `Connection: keep-alive`
but the connection is (correctly) closed after the second response.

If a single request contains

	Connection: close
	Connection: keep-alive

then RFC 9112 section 9.3 says the keep-alive header is ignored, but
the statschannel sends a spurious keep-alive in its response, though
it correctly closes the connection.

To fix these bugs, make it more clear that the `httpd->flags` are part
of the per-request-response state. The Connection: flags are now
described in terms of the effect they have instead of what causes them
to be set.

(manually picked from commit e18ca83a3b)
2023-07-04 14:53:08 +02:00
..
check deprecate delegation-only and root-delegation only 2023-03-23 14:09:53 -07:00
confgen Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
delv Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
dig dighost.c: don't call check_if_done() twice successively 2023-05-10 11:41:35 +00:00
dnssec Remove trailing whitespace from all text files 2023-06-13 16:13:16 +02:00
named Restore the ability to read legacy K*+157+* files 2023-06-29 10:32:10 +10:00
nsupdate nsupdate: set network manager default timeout values 2023-04-03 16:19:18 +00:00
plugins Remove 'inst != NULL' from cleanup check in plugin_register 2023-04-05 10:27:52 +10:00
rndc set the default rndc read timeout to 60 seconds 2023-05-05 11:46:55 +02:00
tests Improve statschannel HTTP Connection: header protocol conformance 2023-07-04 14:53:08 +02:00
tools named-rrchecker: have fatal cleanup 2023-02-07 11:15:21 +11:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00