[Boost-bugs] [Boost C++ Libraries] #5339: asio async_read throws boost::asio::error::invalid_argument on mac OS X

Subject: [Boost-bugs] [Boost C++ Libraries] #5339: asio async_read throws boost::asio::error::invalid_argument on mac OS X
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-19 00:05:25


#5339: asio async_read throws boost::asio::error::invalid_argument on mac OS X
-------------------------------------------------------+--------------------
 Reporter: wjwwood@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: asio invalid_argument mac os x async_read |
-------------------------------------------------------+--------------------
 I am trying to write a serial library using Boost's asio, but on mac OS X
 the async_read throws boost::asio::error::invalid_argument. I have
 created a custom completion condition to ignore the invalid_argument
 exceptions, but this causes a busy wait (using a lot of cpu time) yet does
 not prevent data from being read.

 I have attached source code and output from both linux and os x.

 Linux: Ubuntu 10.10 i386 - Boost 1.42.0
 Mac OS X: 10.6.6 - Boost 1.45.0

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5339>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC