Don't consider timer and nextReq until stash and outgoing are empty.
commit6cfd91839f7c91c04283d4cdf99f4f56eeb5b78a
authorDavid Fifield <david@bamsoftware.com>
Mon, 2 Aug 2021 05:05:07 +0000 (1 23:05 -0600)
committerDavid Fifield <david@bamsoftware.com>
Mon, 2 Aug 2021 05:22:30 +0000 (1 23:22 -0600)
treeccee2acb88c576a124deb5681085ad80cf0c1e2d
parent0e7ea57efb697b693982a4c0a01660d036161e96
Don't consider timer and nextReq until stash and outgoing are empty.

When the timer is expired, we want to continue packing as long as
additional packets are available with zero waiting. I'm not sure about
deferring the nextReq break, but we expect packet packing to be a quick
operation.
dnstt-server/main.go