Skip to content

Commit 6b72054

Browse files
committed
async_normal.hpp: change timer to steady_timer
1 parent b46b3d9 commit 6b72054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boost/network/protocol/http/client/connection/async_normal.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <iterator>
1313
#include <cstdint>
1414
#include <boost/algorithm/string/trim.hpp>
15-
#include <asio/deadline_timer.hpp>
15+
#include <asio/steady_timer.hpp>
1616
#include <asio/placeholders.hpp>
1717
#include <asio/strand.hpp>
1818
#include <asio/streambuf.hpp>
@@ -109,7 +109,7 @@ struct http_async_connection
109109
callback, generator, ec, endpoint_range);
110110
}));
111111
if (timeout_ > 0) {
112-
timer_.expires_from_now(boost::posix_time::seconds(timeout_));
112+
timer_.expires_from_now(std::chrono::seconds(timeout_));
113113
timer_.async_wait(request_strand_.wrap([=] (std::error_code const &ec) {
114114
self->handle_timeout(ec);
115115
}));

0 commit comments

Comments
 (0)