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

Commita85ddb2

Browse files
author
Antoine Tremblay
committed
Fixed soreuse acceptor option
Set acceptor options before bind since thereuse_address option must be set at that point.
1 parent7f02e43 commita85ddb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ namespace boost { namespace network { namespace http {
141141
BOOST_NETWORK_MESSAGE("Error opening socket:" << address_ <<":" << port_);
142142
return;
143143
}
144+
socket_options_base::acceptor_options(acceptor);
144145
acceptor.bind(endpoint, error);
145146
if (error) {
146147
BOOST_NETWORK_MESSAGE("Error binding socket:" << address_ <<":" << port_);
147148
return;
148149
}
149-
socket_options_base::acceptor_options(acceptor);
150150
acceptor.listen(asio::socket_base::max_connections, error);
151151
if (error) {
152152
BOOST_NETWORK_MESSAGE("Error listening on socket: '" << error <<"' on" << address_ <<":" << port_);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp