Use steady_timer type

close #1606
This commit is contained in:
Filip Matzner
2019-05-10 14:00:11 +02:00
committed by Damian Jarek
parent 363d5c36d3
commit 1501962b92
3 changed files with 3 additions and 2 deletions

View File

@@ -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
--------------------------------------------------------------------------------

View File

@@ -111,7 +111,7 @@ private:
boost::optional<http::request_parser<request_body_t, alloc_t>> parser_;
// The timer putting a time limit on requests.
net::basic_waitable_timer<std::chrono::steady_clock> request_deadline_{
net::steady_timer request_deadline_{
acceptor_.get_executor(), (std::chrono::steady_clock::time_point::max)()};
// The string-based response message.

View File

@@ -75,7 +75,7 @@ private:
http::response<http::dynamic_body> response_;
// The timer for putting a deadline on connection processing.
net::basic_waitable_timer<std::chrono::steady_clock> deadline_{
net::steady_timer deadline_{
socket_.get_executor(), std::chrono::seconds(60)};
// Asynchronously receive a complete request message.