static string* doProcessUDPQuestion(const std::string& question, const ComboAddress& fromaddr, const ComboAddress& destaddr, ComboAddress source, ComboAddress destination, struct timeval tv, int fd, std::vector<ProxyProtocolValue>& proxyProtocolValues, RecEventTrace& eventTrace)
{
+ ++s_threadInfos[t_id].numberOfDistributedQueries;
gettimeofday(&g_now, nullptr);
if (tv.tv_sec) {
struct timeval diff = g_now - tv;
});
}
else {
- ++s_threadInfos[t_id].numberOfDistributedQueries;
doProcessUDPQuestion(data, fromaddr, dest, source, destination, tv, fd, proxyProtocolValues, eventTrace);
}
}
}
}
- ++targetInfo.numberOfDistributedQueries;
-
return true;
}
/* This thread handles the web server, carbon, statistics and the control channel */
auto& handlerInfos = s_threadInfos.at(0);
handlerInfos.isHandler = true;
- handlerInfos.thread = std::thread(recursorThread, 0, "main");
+ handlerInfos.thread = std::thread(recursorThread, 0, "web+stat");
setCPUMap(cpusMap, currentThreadId, pthread_self());