Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit541c140

Browse files
committed
sync_ssl: change timer to steady_timer
1 parent3c36ba4 commit541c140

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_codeconst& 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)

[8]ページ先頭

©2009-2025 Movatter.jp