Split failed queries in retries in stat counting.

This commit is contained in:
Simon Kelley
2022-09-16 00:07:36 +01:00
parent d882dfdae9
commit 6722ec6c78
4 changed files with 11 additions and 6 deletions

View File

@@ -389,8 +389,10 @@ static int forward_query(int udpfd, union mysockaddr *udpaddr,
#endif
{
/* retry on existing query, from original source. Send to all available servers */
if (!fast_retry)
if (udpfd == -1 && !fast_retry)
forward->sentto->failed_queries++;
else
forward->sentto->retrys++;
if (!filter_servers(forward->sentto->arrayposn, F_SERVER, &first, &last))
goto reply;