stream reuse, fix review comments.

This commit is contained in:
W.C.A. Wijngaards 2020-11-23 09:44:56 +01:00
parent 8143ce6967
commit 4445d9c5aa
3 changed files with 7 additions and 4 deletions

View file

@ -233,8 +233,11 @@ struct port_comm {
struct reuse_tcp {
/** rbtree node with links in tcp_reuse tree. key is NULL when not
* in tree. Both active and empty connections are in the tree.
* key is this structure, the sockaddr and and then is-ssl bool,
* and then ptr value for several times same address in tree */
* key is a pointer to this structure, the members used to compare
* are the sockaddr and and then is-ssl bool, and then ptr value is
* used in case the same address exists several times in the tree
* when there are multiple connections to the same destination to
* make the rbtree items unique. */
rbnode_type node;
/** the key for the tcp_reuse tree. address of peer, ip4 or ip6,
* and port number of peer */

View file

@ -11,7 +11,7 @@ server:
do-not-query-localhost: no
tls-cert-bundle: "unbound_server.pem"
ssl-upstream: yes
tls-upstream: yes
forward-zone:
name: "."

View file

@ -190,7 +190,7 @@ for x in a1.more.net a2.more.net a3.more.net a4.more.net a5.more.net; do
done
# make the server timeout to drop the upstream connection
echo "> sleep 20"
echo "> sleep 15"
sleep 15
# see if we are still up.
echo "> query a7.more.net"