Browse Source

Note to self about multiple sendLoop.

David Fifield 6 years ago
parent
commit
15c272edc4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      dnstt-server/main.go

+ 3 - 0
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)
 	ch := make(chan *record, 100)
 	defer close(ch)
 	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() {
 	go func() {
 		err := sendLoop(dnsConn, ttConn, ch, maxEncodedPayload)
 		err := sendLoop(dnsConn, ttConn, ch, maxEncodedPayload)
 		if err != nil {
 		if err != nil {