Opened 11 years ago

Closed 10 years ago

#5742 closed Bugs (wontfix)

cancel() for not connected socket causes "Bad file descriptor" exception

Reported by: Gennady Proskurin <gprspb@…> Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

If socket is not connected, doing cancel() for it causes the following exception:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'

what(): Bad file descriptor

Abort (core dumped) Exit 134

Test program attached. This affects at least tcp and local::stream_protocol sockets, and possibly other sockets.

Attachments (1)

cancel.cc (184 bytes ) - added by Gennady Proskurin <gprspb@…> 11 years ago.

Download all attachments as: .zip

Change History (2)

by Gennady Proskurin <gprspb@…>, 11 years ago

Attachment: cancel.cc added

comment:1 by chris_kohlhoff, 10 years ago

Resolution: wontfix
Status: newclosed

As designed.

Note: See TracTickets for help on using tickets.