Subject: [Boost-bugs] [Boost C++ Libraries] #7488: Accept Errors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-09 12:37:47
#7488: Accept Errors
------------------------------------------------------+---------------------
Reporter: Olaf van der Spek <olafvdspek@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.51.0 | Severity: Problem
Keywords: |
------------------------------------------------------+---------------------
If an error occurs, the server stops accepting new connections. I think
this was reported before (for another example) and I think other examples
also suffer from it.
boost_asio/example/local/stream_server.cpp
{{{
void handle_accept(session_ptr new_session,
const boost::system::error_code& error)
{
if (!error)
{
new_session->start();
new_session.reset(new session(io_service_));
acceptor_.async_accept(new_session->socket(),
boost::bind(&server::handle_accept, this, new_session,
boost::asio::placeholders::error));
}
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7488> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC