mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-08 07:49:35 -05:00
stream reuse, fix review comments.
This commit is contained in:
parent
8143ce6967
commit
4445d9c5aa
3 changed files with 7 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
2
testdata/tls_reuse.tdir/tls_reuse.conf
vendored
2
testdata/tls_reuse.tdir/tls_reuse.conf
vendored
|
|
@ -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: "."
|
||||
|
|
|
|||
2
testdata/tls_reuse.tdir/tls_reuse.test
vendored
2
testdata/tls_reuse.tdir/tls_reuse.test
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue