Re: [Boost-bugs] [Boost C++ Libraries] #6660: async_read_until() does not complete immediately when the delimeter is already in the streambuf.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6660: async_read_until() does not complete immediately when the delimeter is already in the streambuf.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-29 01:04:15


#6660: async_read_until() does not complete immediately when the delimeter is
already in the streambuf.
--------------------------------------+-------------------------------------
  Reporter: sammy@… | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: asio
   Version: Boost Development Trunk | Severity: Regression
Resolution: invalid | Keywords:
--------------------------------------+-------------------------------------
Changes (by chris_kohlhoff):

  * status: new => closed
  * resolution: => invalid

Comment:

 Your stream implementation does not strictly adhere to the
 [http://www.boost.org/doc/libs/1_49_0/doc/html/boost_asio/reference/AsyncReadStream.html
 AsyncReadStream requirements]:

   If the total size of all buffers in the sequence mb is 0,
   the asynchronous read operation shall complete immediately
   and pass 0 as the argument to the handler that specifies
   the number of bytes read.

 The async_read_until implementation relies on this behaviour to deliver
 the completion handler when the streambuf already contains the delimiter.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6660#comment:2>
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:09 UTC