Skip to content

Commit

Permalink
Merge pull request #13149 from rgacogne/ddist-fix-frontend-metrics-re…
Browse files Browse the repository at this point in the history
…cvmmsg

dnsdist: Properly record self-answered UDP responses with recvmmsg
  • Loading branch information
rgacogne authored Aug 17, 2023
2 parents c499f58 + 3692220 commit b3ba6bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdns/dnsdist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,7 @@ static void processUDPQuery(ClientState& cs, LocalHolders& holders, const struct
if (dq.ids.delayMsec == 0 && responsesVect != nullptr) {
queueResponse(cs, query, dest, remote, responsesVect[*queuedResponses], respIOV, respCBuf);
(*queuedResponses)++;
handleResponseSent(dq.ids.qname, dq.ids.qtype, 0., remote, ComboAddress(), query.size(), *dh, dnsdist::Protocol::DoUDP, dnsdist::Protocol::DoUDP, false);
return;
}
#endif /* defined(HAVE_RECVMMSG) && defined(HAVE_SENDMMSG) && defined(MSG_WAITFORONE) */
Expand Down

0 comments on commit b3ba6bc

Please sign in to comment.