Re: [Boost-bugs] [Boost C++ Libraries] #2835: basic_stream_socket::available() does not work reliably

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2835: basic_stream_socket::available() does not work reliably
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-09 12:32:25


#2835: basic_stream_socket::available() does not work reliably
-------------------------------------+--------------------------------------
  Reporter: sidharth_at_[hidden] | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: Boost 1.39.0 | Component: asio
   Version: Boost 1.38.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------------+--------------------------------------
Changes (by chris_kohlhoff):

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

Comment:

 How do you know that there is data waiting to be read? If you can
 construct a test case feel free to reopen this bug.

 With respect to your "isavailable()" proposal, you already have this
 facility available using asynchronous reads (with or without using
 null_buffers) or by setting your socket to non-blocking.

 N.B The Microsoft KB article is not related to the behaviour you describe.
 In fact, the article seems to describe ioctl/FIONREAD working as intended.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2835#comment:3>
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:00 UTC