Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #283 from NLnetLabs/stream-reuse
Stream reuse
- Loading branch information
Showing
23 changed files
with
2,334 additions
and
153 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
server: | ||
verbosity: 5 | ||
# num-threads: 1 | ||
interface: 127.0.0.1 | ||
port: @PORT@ | ||
use-syslog: no | ||
directory: . | ||
pidfile: "unbound.pid" | ||
chroot: "" | ||
username: "" | ||
do-not-query-localhost: no | ||
|
||
tcp-upstream: yes | ||
|
||
forward-zone: | ||
name: "." | ||
forward-addr: "127.0.0.1@@TOPORT@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# this is the upstream server that has pipelining and responds to queries. | ||
server: | ||
verbosity: 1 | ||
# num-threads: 1 | ||
interface: 127.0.0.1 | ||
port: @PORT@ | ||
use-syslog: no | ||
directory: . | ||
pidfile: "unbound2.pid" | ||
chroot: "" | ||
username: "" | ||
do-not-query-localhost: no | ||
tcp-idle-timeout: 10000 | ||
|
||
log-queries: yes | ||
log-replies: yes | ||
log-identity: "upstream" | ||
|
||
local-zone: "." refuse | ||
local-zone: "example.com" static | ||
local-data: "www.example.com A 10.20.30.40" | ||
local-data: "www1.example.com A 10.20.30.41" | ||
local-data: "www2.example.com A 10.20.30.42" | ||
local-data: "www3.example.com A 10.20.30.43" | ||
local-data: "www4.example.com A 10.20.30.44" | ||
local-data: "www5.example.com A 10.20.30.45" | ||
local-data: "www6.example.com A 10.20.30.46" | ||
local-data: "www7.example.com A 10.20.30.47" | ||
|
||
local-zone: "drop.net" deny | ||
local-zone: "refuse.net" refuse | ||
|
||
local-zone: "more.net" redirect | ||
local-data: "more.net A 10.20.30.40" | ||
|
||
# if queries escape, send them to localhost | ||
forward-zone: | ||
name: "." | ||
forward-addr: "127.0.0.1@@TOPORT@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
BaseName: tcp_reuse | ||
Version: 1.0 | ||
Description: Test tcp stream reuse. | ||
CreationDate: Wed Jun 03 09:37:00 CET 2020 | ||
Maintainer: Wouter Wijngaards | ||
Category: | ||
Component: | ||
CmdDepends: | ||
Depends: | ||
Help: | ||
Pre: tcp_reuse.pre | ||
Post: tcp_reuse.post | ||
Test: tcp_reuse.test | ||
AuxFiles: | ||
Passed: | ||
Failure: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# #-- tcp_reuse.post --# | ||
# source the master var file when it's there | ||
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master | ||
# source the test var file when it's there | ||
[ -f .tpkg.var.test ] && source .tpkg.var.test | ||
# | ||
# do your teardown here | ||
. ../common.sh | ||
kill_pid `cat unbound2.pid` | ||
if test -f unbound2.log; then | ||
echo ">>> upstream log" | ||
cat unbound2.log | ||
fi | ||
#kill_pid $UNBOUND_PID | ||
kill_pid `cat unbound.pid` | ||
if test -f unbound.log; then | ||
echo ">>> unbound log" | ||
cat unbound.log | ||
fi |
Oops, something went wrong.