| skipped 777 lines |
778 | 778 | | ch := make(chan *record, 100) |
779 | 779 | | defer close(ch) |
780 | 780 | | |
| 781 | + | // We could run multiple copies of sendLoop; that would allow more time |
| 782 | + | // for each response to collect downstream data before being evicted by |
| 783 | + | // another response that needs to be sent. |
781 | 784 | | go func() { |
782 | 785 | | err := sendLoop(dnsConn, ttConn, ch, maxEncodedPayload) |
783 | 786 | | if err != nil { |
| skipped 116 lines |