Re: [Boost-bugs] [Boost C++ Libraries] #8933: on the windows platform async reads with multiple threads can produce random EOF errors

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8933: on the windows platform async reads with multiple threads can produce random EOF errors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-02 21:27:57


#8933: on the windows platform async reads with multiple threads can produce
random EOF errors
-----------------------------------------+----------------------------
  Reporter: Shane Powell <killerbee@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.54.0 | Severity: Showstopper
Resolution: | Keywords:
-----------------------------------------+----------------------------

Comment (by smueller@…):

 I saw this in my Windows application after upgrading to Boost 1.54. I
 noticed that, during a stress test, frequently the bytes received field in
 my ReadHandler was getting zero and an error_code of zero while a non-zero
 number of bytes was requested from an async_read call. In my case this
 caused stream corruption which could only be resolved in non-library space
 by passing in the number of bytes requested for the read into the handler
 and using that instead of the bytes received value passed to the
 ReadHandler.

 Strangely enough, in my testing, it seemed that activating
 BOOST_ASIO_ENABLE_HANDLER_TRACKING made this problem pop up more
 frequently.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8933#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:13 UTC