Skip to content

Commit 28de578

Browse files
committed
Merge pull request cpp-netlib#40 from hexa00/0.9-devel
Fixed soreuse acceptor option
2 parents 00b8cf8 + a85ddb2 commit 28de578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)