Commit 8ef8328b authored by octal's avatar octal

Fixed uninitialized variable

parent b1a2e8d1
......@@ -45,7 +45,7 @@ class MyHandler : public Net::Http::Handler {
using namespace Net::Http;
response.timeoutAfter(std::chrono::seconds(2));
//response.timeoutAfter(std::chrono::seconds(2));
//timeout.arm(std::chrono::seconds(2));
auto query = req.query();
......@@ -323,7 +323,7 @@ int main(int argc, char *argv[]) {
LoadMonitor monitor(server);
monitor.setInterval(std::chrono::seconds(1));
//monitor.start();
monitor.start();
server->serve();
......
......@@ -48,6 +48,7 @@ Service::init(const std::shared_ptr<Handler>& handler) {
handler_->io_ = this;
handler_->registerPoller(poller);
shutdown_.store(false);
}
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