diff --git a/CHANGELOG.md b/CHANGELOG.md index 79eae7d9..b9204247 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ Version 256: * Add 1-element specialization for `buffers_cat` * Fix `buffers_cat` iterator tests * Don't pessimize-move +* Use steady_timer type -------------------------------------------------------------------------------- diff --git a/example/http/server/fast/http_server_fast.cpp b/example/http/server/fast/http_server_fast.cpp index a9e487b3..eb84f5c2 100644 --- a/example/http/server/fast/http_server_fast.cpp +++ b/example/http/server/fast/http_server_fast.cpp @@ -111,7 +111,7 @@ private: boost::optional> parser_; // The timer putting a time limit on requests. - net::basic_waitable_timer request_deadline_{ + net::steady_timer request_deadline_{ acceptor_.get_executor(), (std::chrono::steady_clock::time_point::max)()}; // The string-based response message. diff --git a/example/http/server/small/http_server_small.cpp b/example/http/server/small/http_server_small.cpp index 0e8762e0..53b6a2b3 100644 --- a/example/http/server/small/http_server_small.cpp +++ b/example/http/server/small/http_server_small.cpp @@ -75,7 +75,7 @@ private: http::response response_; // The timer for putting a deadline on connection processing. - net::basic_waitable_timer deadline_{ + net::steady_timer deadline_{ socket_.get_executor(), std::chrono::seconds(60)}; // Asynchronously receive a complete request message.