Remove multithreaded code, and make crow use a single thread
Change-Id: I39e9ba84ab3464cf75b5bba82badb729525bf3b9
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 53dd127..b84c94c 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -1,3 +1,4 @@
+#include <systemd/sd-daemon.h>
#include <dbus/connection.hpp>
#include <dbus_monitor.hpp>
#include <dbus_singleton.hpp>
@@ -16,7 +17,6 @@
#include "webserver_common.hpp"
#include <crow/app.h>
#include <boost/asio.hpp>
-#include <systemd/sd-daemon.h>
constexpr int defaultPort = 18080;
@@ -31,7 +31,7 @@
app.socket(SD_LISTEN_FDS_START);
} else {
CROW_LOG_INFO << "bad incoming socket, starting webserver on port "
- << defaultPort;
+ << defaultPort;
app.port(defaultPort);
}
} else {
@@ -78,4 +78,5 @@
redfish::RedfishService redfish(app);
app.run();
+ io->run();
}