Commit 8ef8328b authored by octal's avatar octal

Fixed uninitialized variable

parent b1a2e8d1
...@@ -45,7 +45,7 @@ class MyHandler : public Net::Http::Handler { ...@@ -45,7 +45,7 @@ class MyHandler : public Net::Http::Handler {
using namespace Net::Http; using namespace Net::Http;
response.timeoutAfter(std::chrono::seconds(2)); //response.timeoutAfter(std::chrono::seconds(2));
//timeout.arm(std::chrono::seconds(2)); //timeout.arm(std::chrono::seconds(2));
auto query = req.query(); auto query = req.query();
...@@ -323,7 +323,7 @@ int main(int argc, char *argv[]) { ...@@ -323,7 +323,7 @@ int main(int argc, char *argv[]) {
LoadMonitor monitor(server); LoadMonitor monitor(server);
monitor.setInterval(std::chrono::seconds(1)); monitor.setInterval(std::chrono::seconds(1));
//monitor.start(); monitor.start();
server->serve(); server->serve();
......
...@@ -48,6 +48,7 @@ Service::init(const std::shared_ptr<Handler>& handler) { ...@@ -48,6 +48,7 @@ Service::init(const std::shared_ptr<Handler>& handler) {
handler_->io_ = this; handler_->io_ = this;
handler_->registerPoller(poller); handler_->registerPoller(poller);
shutdown_.store(false);
} }
void void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment