On 16.02.2011 03:38, Gregory Symons wrote:
> The following tests FAILED:
> 14 - cpp-netlib-hello_world (Failed)
> 15 - cpp-netlib-http_async_server (Failed)
> 16 - cpp-netlib-http_server_async_less_copy (Failed)
> 17 - mime-roundtrip (Failed)
>
> Looking closely at the verbose test output, it looks like they all
> failed because the address they were trying to bring up the server on
> was still in use.
>
Will you please try it with the following patch?
--
Best regards,
Oleg Malashenko.
diff --git a/boost/network/protocol/http/server/async_server.hpp b/boost/network/protocol/http/server/async_server.hpp
index abc05d6..74628cd 100644
--- a/boost/network/protocol/http/server/async_server.hpp
+++ b/boost/network/protocol/http/server/async_server.hpp
@@ -37,6 +37,8 @@ namespace boost { namespace network { namespace http {
tcp::endpoint endpoint = *resolver.resolve(query);
acceptor.open(endpoint.protocol());
acceptor.bind(endpoint);
+ boost::asio::ip::tcp::socket::reuse_address opt(true);
+ acceptor.set_option(opt);
acceptor.listen();
new_connection.reset(new connection(io_service, handler, thread_pool));
acceptor.async_accept(new_connection->socket(),
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel