We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b46b3d9 commit 6b72054Copy full SHA for 6b72054
boost/network/protocol/http/client/connection/async_normal.hpp
@@ -12,7 +12,7 @@
12
#include <iterator>
13
#include <cstdint>
14
#include <boost/algorithm/string/trim.hpp>
15
-#include <asio/deadline_timer.hpp>
+#include <asio/steady_timer.hpp>
16
#include <asio/placeholders.hpp>
17
#include <asio/strand.hpp>
18
#include <asio/streambuf.hpp>
@@ -109,7 +109,7 @@ struct http_async_connection
109
callback, generator, ec, endpoint_range);
110
}));
111
if (timeout_ > 0) {
112
- timer_.expires_from_now(boost::posix_time::seconds(timeout_));
+ timer_.expires_from_now(std::chrono::seconds(timeout_));
113
timer_.async_wait(request_strand_.wrap([=] (std::error_code const &ec) {
114
self->handle_timeout(ec);
115
0 commit comments