]> 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)
committerAram Sargsyan <aram@isc.org>
Mon, 3 Apr 2023 16:18:39 +0000 (16:18 +0000)
commit7beda284d20e501c469e4493ea72eb082f2bae64
treeda80bc79739052936e743b3bffacaad51bc66c76
parent14084d8eac43f32ecfcac1ad493d6bac6449b1a6
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.

(cherry picked from commit edcdb881da9aefaaadb9b6e4de2ff372ed395ab0)
lib/dns/request.c