Opened 10 years ago
Closed 10 years ago
#7488 closed Bugs (fixed)
Accept Errors
Reported by: | Owned by: | chris_kohlhoff | |
---|---|---|---|
Milestone: | To Be Determined | Component: | asio |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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)); } }
Note:
See TracTickets
for help on using tickets.
(In [82290]) Merge from trunk: