Boost C++ Libraries: Ticket #7488: Accept Errors https://svn.boost.org/trac10/ticket/7488 <p> 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. </p> <p> boost_asio/example/local/stream_server.cpp </p> <pre class="wiki"> void handle_accept(session_ptr new_session, const boost::system::error_code&amp; error) { if (!error) { new_session-&gt;start(); new_session.reset(new session(io_service_)); acceptor_.async_accept(new_session-&gt;socket(), boost::bind(&amp;server::handle_accept, this, new_session, boost::asio::placeholders::error)); } } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7488 Trac 1.4.3 chris_kohlhoff Sun, 30 Dec 2012 23:17:22 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7488#comment:1 https://svn.boost.org/trac10/ticket/7488#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82290" title="Merge from trunk: * Fix some 64-to-32-bit conversion warnings. Fixes ...">[82290]</a>) Merge from trunk: </p> <ul><li>Fix some 64-to-32-bit conversion warnings. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7459" title="#7459: Bugs: warnings in boost::asio (closed: fixed)">#7459</a> </li></ul><ul><li>Fix typos in comments. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7761" title="#7761: Bugs: Minor comment typo in boost/asio/ssl/detail/stream_core.hpp (closed: fixed)">#7761</a> </li></ul><ul><li>Fix error in example embedded in basic_socket::get_option's documentation. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7562" title="#7562: Bugs: Old documentation for reading socket options (closed: fixed)">#7562</a> </li></ul><ul><li>Use long rather than int for SSL_CTX options, to match OpenSSL. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7209" title="#7209: Bugs: Asio SSL overflow in constant (closed: fixed)">#7209</a> </li></ul><ul><li>Use _snwprintf to address a compile error due to the changed swprintf signature in recent versions of MinGW. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7373" title="#7373: Bugs: Boost ASIO has a wrong swprintf interface definition for MinGW (closed: fixed)">#7373</a> </li></ul><ul><li>Fix deadlock that can occur on Windows when shutting down a pool of io_service threads due to running out of work. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7552" title="#7552: Bugs: win_iocp_io_service hangs due to a race condition (closed: fixed)">#7552</a> </li></ul><ul><li>Enable noexcept qualifier for error categories. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7797" title="#7797: Feature Requests: Add noexcept to conform with C++11 after #7278 (closed: fixed)">#7797</a> </li></ul><ul><li>Treat errors from accept as non-fatal. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7488" title="#7488: Bugs: Accept Errors (closed: fixed)">#7488</a> </li></ul><ul><li>Add a small block recycling optimisation. </li></ul><ul><li>Version bump. </li></ul><ul><li>Regenerate documentation. </li></ul> Ticket