Boost C++ Libraries: Ticket #3370: async_client.cpp example can eat all available VM https://svn.boost.org/trac10/ticket/3370 <p> As found at <a class="ext-link" href="http://www.rsdn.ru/forum/cpp.applied/3517122.aspx"><span class="icon">​</span>http://www.rsdn.ru/forum/cpp.applied/3517122.aspx</a>, in russian: </p> <pre class="wiki">boost::asio::async_read_until(socket_, response_, "\r\n", boost::bind(&amp;client::handle_read_status_line, this, boost::asio::placeholders::error)); </pre><p> What if the server won't ever return "\r\n" - will response_ grow up to all available RAM? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3370 Trac 1.4.3 chris_kohlhoff Thu, 18 Mar 2010 02:21:34 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3370#comment:1 https://svn.boost.org/trac10/ticket/3370#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/60686" title="Add note to examples on how to limit asio::streambuf growth. Fixes #3370. ">[60686]</a>) Add note to examples on how to limit asio::streambuf growth. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3370" title="#3370: Bugs: async_client.cpp example can eat all available VM (closed: fixed)">#3370</a>. </p> Ticket