]> git.ipfire.org Git - thirdparty/bind9.git/commit
Do not resend TCP requests
authorAram Sargsyan <aram@isc.org>
Mon, 12 Dec 2022 12:12:13 +0000 (12:12 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 3 Apr 2023 15:21:43 +0000 (15:21 +0000)
commitedcdb881da9aefaaadb9b6e4de2ff372ed395ab0
treeb8c54fa3d24c356ac47865a0c0a9440f9ea83102
parent5b373596975862b4f6df2f70516db02683a9e7fc
Do not resend TCP requests

The req_response() function is using 'udpcount' variable to resend
the request 'udpcount' times on timeout even for TCP requests,
which does not make sense, as it would use the same connection.

Add a condition to use the resend logic only for UDP requests.
lib/dns/request.c