DNS-OARC / flamethrower

a DNS performance and functional testing utility supporting UDP, TCP, DoT and DoH
Apache License 2.0
319 stars 37 forks source link

Fix issues when running with a low delay (-d option) #78

Closed VanStratum closed 3 years ago

VanStratum commented 3 years ago

When running DoT or DoH with a low delay on a fast network, a race conditon appears that results in flamethrower livelocking.

The second commit fix a doh issue found while testing the first commit.

VanStratum commented 3 years ago

The vector is destroyed when _recv_chunk is destroyed, at session end. There is no need to destroy the vector immediatly since http2 does not reuse stream IDs on a connection.