Boost C++ Libraries: Ticket #5605: http async client example doesn't close on error correctly https://svn.boost.org/trac10/ticket/5605 <p> In handle_connect, the final else block needs a "socket_.close();" </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5605 Trac 1.4.3 chris_kohlhoff Tue, 29 May 2012 02:46:20 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5605#comment:1 https://svn.boost.org/trac10/ticket/5605#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">invalid</span> </li> </ul> <p> Actually it is not required since no further asynchronous operations are started. The socket will then be closed automatically when the class's destructor runs. In any case, the example has since been converted to use the <code>asio::async_connect()</code> function, which has simplified the example logic somewhat. </p> Ticket