From 15c272edc4918fceddcaa9c274bb6092a4c4857f Mon Sep 17 00:00:00 2001 From: David Fifield Date: Wed, 29 Apr 2020 23:26:21 -0600 Subject: [PATCH] Note to self about multiple sendLoop. --- dnstt-server/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dnstt-server/main.go b/dnstt-server/main.go index 539a4f4..99a17f7 100644 --- a/dnstt-server/main.go +++ b/dnstt-server/main.go @@ -778,6 +778,9 @@ func run(privkey, pubkey []byte, domain dns.Name, upstream net.Addr, dnsConn net ch := make(chan *record, 100) defer close(ch) + // We could run multiple copies of sendLoop; that would allow more time + // for each response to collect downstream data before being evicted by + // another response that needs to be sent. go func() { err := sendLoop(dnsConn, ttConn, ch, maxEncodedPayload) if err != nil { -- 2.11.4.GIT