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

Subject: Re: [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:21:50


#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
Resolution: | Keywords: asio invalid_argument mac os x async_read
--------------------------------+-------------------------------------------

Comment (by anonymous):

 Just a bit more info...

 The Linux transcript is the expected behavior. The characters are coming
 into the serial port at 1Hz (Arduino microcontroller) and the timeout is
 set to 250 milliseconds, so there should be three time outs to every read
 with data.

 The problem seems to allow data to be read on os x, but it prevents
 serial_port.cancel from working properly and therefore keeping my
 deadline_timer based timeout from working properly.

 The serial.h and serial.cpp should compile with just Boost, but the
 test_serial.cpp uses ROS (ros.org), but the example is simple enough to
 reproduce with out quickly.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5339#comment:1>
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:06 UTC