diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2017-09-22 15:44:01 +0200 |
---|---|---|
committer | Mauro Sardara <msardara+fdio@cisco.com> | 2017-09-22 15:44:01 +0200 |
commit | 9feade6d7afdfb1075877e6e098e64550351b333 (patch) | |
tree | a8b73d7ed2745c71357a475ae888091ab0d444b1 /icnet/http | |
parent | 4bd049e639d80028ccdc909c0fef2de4e810cf50 (diff) |
Add simple applications for ICN17 tutorial
Change-Id: Ic76e73c87e0313056356a02d8ec45d6e337288cb
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet/http')
-rw-r--r-- | icnet/http/icnet_http_server_publisher.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/icnet/http/icnet_http_server_publisher.cc b/icnet/http/icnet_http_server_publisher.cc index e42154b2..82c90051 100644 --- a/icnet/http/icnet_http_server_publisher.cc +++ b/icnet/http/icnet_http_server_publisher.cc @@ -39,9 +39,7 @@ HTTPServerPublisher& HTTPServerPublisher::attachPublisher() { HTTPServerPublisher &HTTPServerPublisher::setTimeout(uint32_t timeout) { std::shared_ptr<transport::Portal> portal; producer_->getSocketOption(transport::GeneralTransportOptions::PORTAL, portal); - timer_ = std::unique_ptr<boost::asio::deadline_timer>(new boost::asio::deadline_timer(portal->getIoService(), - boost::posix_time::seconds( - timeout))); + timer_ = std::unique_ptr<boost::asio::deadline_timer>(new boost::asio::deadline_timer(portal->getIoService(), boost::posix_time::seconds(timeout))); wait_callback_ = [this](const boost::system::error_code e) { if (!e) { |