Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bebuch committed May 2, 2018
1 parent ff76e89 commit 87e9032
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/http_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace disposer_module::http_server_component{
void on_server_connect(
boost::asio::ip::tcp::socket&& socket,
webservice::http_request&& req
){
)override{
async_server_connect(std::move(socket), std::move(req), false);
}

Expand Down Expand Up @@ -288,7 +288,7 @@ namespace disposer_module::http_server_component{
void on_server_connect(
boost::asio::ip::tcp::socket&& socket,
webservice::http_request&& req
){
)override{
async_server_connect(std::move(socket), std::move(req));
}

Expand Down Expand Up @@ -651,8 +651,9 @@ namespace disposer_module::http_server_component{
os << "add WebSocket control service on root(/)";
}, [this]{
auto control_service =
std::make_unique< class control_service< Component > >(
component_, *server_);
std::make_unique< http_server_component::
control_service< Component >
>(component_, *server_);

control_service->set_ping_time(std::chrono::milliseconds(
component_("timeout_in_ms"_param)));
Expand Down

0 comments on commit 87e9032

Please sign in to comment.