d_responseSender = std::move(sender);
d_responseReceiver = std::move(receiver);
}
-
}
DOQServerConfig(const DOQServerConfig&) = delete;
DOQServerConfig(DOQServerConfig&&) = default;
if (!du->dsc->d_responseSender.send(std::move(du))) {
vinfolog("Unable to pass a %s to the DoQ worker thread because the pipe is full", description);
}
- } catch (const std::exception& e) {
+ }
+ catch (const std::exception& e) {
vinfolog("Unable to pass a %s to the DoQ worker thread because we couldn't write to the pipe: %s", description, e.what());
}
}
static void flushResponses(pdns::channel::Receiver<DOQUnit>& receiver)
{
- for(;;) {
+ for (;;) {
try {
auto tmp = receiver.receive();
if (!tmp) {
- return ;
+ return;
}
auto du = std::move(*tmp);
auto conn = getConnection(du->serverConnID);
handleResponse(*du->dsc->df, *conn, du->streamID, du->response);
-
}
catch (const std::exception& e) {
errlog("Error while processing response received over DoQ: %s", e.what());
#ifdef __linux__
// On Linux this gives us 128k pending queries (default is 8192 queries),
// which should be enough to deal with huge spikes
- uint32_t d_internalPipeBufferSize{1024*1024};
+ uint32_t d_internalPipeBufferSize{1024 * 1024};
#else
uint32_t d_internalPipeBufferSize{0};
#endif