Skip to content

Commit

Permalink
Also start web service in single thread case
Browse files Browse the repository at this point in the history
  • Loading branch information
omoerbeek committed Feb 11, 2025
1 parent 47c9cf6 commit 75dd174
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion pdns/iputils.hh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <iostream>
#include <cstdio>
#include <functional>
#include <bitset>
#include "pdnsexception.hh"
#include "misc.hh"
#include <netdb.h>
Expand Down
2 changes: 1 addition & 1 deletion pdns/recursordist/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,9 @@ rec_control_SOURCES = \
rcpgenerator.cc rcpgenerator.hh \
rec-lua-conf.cc rec-lua-conf.hh \
rec-system-resolve.cc rec-system-resolve.hh \
rec-web-stubs.hh \
rec_channel.cc rec_channel.hh \
rec_control.cc \
rec-web-stubs.hh \
settings/cxxsupport.cc \
sillyrecords.cc \
sortlist.cc sortlist.hh \
Expand Down
5 changes: 5 additions & 0 deletions pdns/recursordist/rec-main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ int RecThreadInfo::runThreads(Logr::log_t log)
taskInfo.start(currentThreadId, "task", cpusMap, log);
}

if (::arg().mustDo("webserver")) {
extern void serveRustWeb();
serveRustWeb();
}

currentThreadId = 1;
auto& info = RecThreadInfo::info(currentThreadId);
info.setListener();
Expand Down

0 comments on commit 75dd174

Please sign in to comment.