Skip to content

Commit 541c140

Browse files
committed
sync_ssl: change timer to steady_timer
1 parent 3c36ba4 commit 541c140

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct https_sync_connection
119119
}
120120
}
121121
if (timeout_ > 0) {
122-
timer_.expires_from_now(boost::posix_time::seconds(timeout_));
122+
timer_.expires_from_now(std::chrono::seconds(timeout_));
123123
auto self = this->shared_from_this();
124124
timer_.async_wait(
125125
[=](std::error_code const& ec) { self->handle_timeout(ec); });
@@ -173,7 +173,7 @@ struct https_sync_connection
173173
}
174174

175175
int timeout_;
176-
::asio::deadline_timer timer_;
176+
::asio::steady_timer timer_;
177177
resolver_type& resolver_;
178178
resolver_function_type resolve_;
179179
::asio::ssl::context context_;

0 commit comments

Comments
 (0)