Boost C++ Libraries: Ticket #12151: Example UDP async server stops on error... https://svn.boost.org/trac10/ticket/12151 <p> In the boost::asio UDP async server example, if a recv_from error occurs, the server stops receiving completely. The code in question is in the "start_receive()" function: </p> <pre class="wiki">void handle_receive(const boost::system::error_code&amp; error, std::size_t /*bytes_transferred*/) { if (!error || error == boost::asio::error::message_size) { .... start_receive(); } } </pre><p> Should instead be (with start_receive() moved outside the error check): </p> <pre class="wiki">void handle_receive(const boost::system::error_code&amp; error, std::size_t /*bytes_transferred*/) { if (!error || error == boost::asio::error::message_size) { .... } start_receive(); } </pre><p> <a href="http://www.boost.org/doc/libs/1_60_0/doc/html/boost_asio/tutorial/tutdaytime6/src.html">http://www.boost.org/doc/libs/1_60_0/doc/html/boost_asio/tutorial/tutdaytime6/src.html</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12151 Trac 1.4.3 anonymous Sun, 02 Oct 2016 17:03:51 GMT owner, component changed https://svn.boost.org/trac10/ticket/12151#comment:1 https://svn.boost.org/trac10/ticket/12151#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matias Capeletto</span> to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">Documentation</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket