Boost C++ Libraries: Ticket #5742: cancel() for not connected socket causes "Bad file descriptor" exception https://svn.boost.org/trac10/ticket/5742 <p> If socket is not connected, doing cancel() for it causes the following exception: </p> <p> terminate called after throwing an instance of 'boost::exception_detail::clone_impl&lt;boost::exception_detail::error_info_injector&lt;boost::system::system_error&gt; &gt;' </p> <blockquote> <p> what(): Bad file descriptor </p> </blockquote> <p> Abort (core dumped) Exit 134 </p> <p> Test program attached. This affects at least tcp and local::stream_protocol sockets, and possibly other sockets. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5742 Trac 1.4.3 Gennady Proskurin <gprspb@…> Fri, 29 Jul 2011 22:05:20 GMT attachment set https://svn.boost.org/trac10/ticket/5742 https://svn.boost.org/trac10/ticket/5742 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">cancel.cc</span> </li> </ul> Ticket chris_kohlhoff Tue, 29 May 2012 01:58:48 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5742#comment:1 https://svn.boost.org/trac10/ticket/5742#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">wontfix</span> </li> </ul> <p> As designed. </p> Ticket