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

Commit00b8cf8

Browse files
committed
Merge branch 'canonical-0.9-devel' into 0.9-devel
2 parentsc78ca0d +05c3427 commit00b8cf8

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

‎boost/network/message.hpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace boost { namespace network {
8383
_headers.erase(key);
8484
}
8585

86-
headers_container_type &headers()const {
86+
headers_container_typeconst&headers()const {
8787
return _headers;
8888
}
8989

@@ -95,7 +95,7 @@ namespace boost { namespace network {
9595
_body = body_;
9696
}
9797

98-
string_typebody()const {
98+
string_typeconst &body()const {
9999
return _body;
100100
}
101101

@@ -107,7 +107,7 @@ namespace boost { namespace network {
107107
_source = source_;
108108
}
109109

110-
string_typesource()const {
110+
string_typeconst &source()const {
111111
return _source;
112112
}
113113

@@ -119,7 +119,7 @@ namespace boost { namespace network {
119119
_destination = destination_;
120120
}
121121

122-
string_typedestination()const {
122+
string_typeconst &destination()const {
123123
return _destination;
124124
}
125125

‎boost/network/protocol/http/server/async_connection.hpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ namespace boost { namespace network { namespace http {
148148

149149
~async_connection()throw () {
150150
boost::system::error_code ignored;
151-
socket_.shutdown(asio::ip::tcp::socket::shutdown_both, ignored);
152-
socket_.close(ignored);
151+
socket_.shutdown(asio::ip::tcp::socket::shutdown_receive, ignored);
153152
}
154153

155154
/** Function: template <class Range> set_headers(Range headers)

‎boost/network/protocol/http/server/sync_connection.hpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ namespace boost { namespace network { namespace http {
247247
if (!ec) {
248248
using boost::asio::ip::tcp;
249249
boost::system::error_code ignored_ec;
250-
socket_.shutdown(tcp::socket::shutdown_both, ignored_ec);
251-
socket_.close(ignored_ec);
250+
socket_.shutdown(tcp::socket::shutdown_receive, ignored_ec);
252251
}
253252
}
254253

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp