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

Commit01743e2

Browse files
committed
Merge pull request#431 from eakraly/0.11-devel
Conditional async_client liftetime_thread creation and fix for URI swap bug.
2 parents8d7972b +addf968 commit01743e2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎boost/network/protocol/http/client/async_impl.hpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ struct async_client
5757
always_verify_peer_(always_verify_peer) {
5858
connection_base::resolver_strand_.reset(
5959
newboost::asio::io_service::strand(service_));
60-
lifetime_thread_.reset(newboost::thread(
61-
boost::bind(&boost::asio::io_service::run, &service_)));
60+
if(!service)
61+
lifetime_thread_.reset(newboost::thread(
62+
boost::bind(&boost::asio::io_service::run, &service_)));
6263
}
6364

6465
~async_client()throw() {

‎boost/network/uri/uri.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class BOOST_URI_DECL uri {
8787

8888
voidswap(uri &other) {
8989
boost::swap(uri_, other.uri_);
90-
boost::swap(uri_parts_,other.uri_parts_);
90+
other.parse();
9191
boost::swap(is_valid_, other.is_valid_);
9292
}
9393

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp