Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60938 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2010-03-30 08:28:22


Author: chris_kohlhoff
Date: 2010-03-30 08:28:22 EDT (Tue, 30 Mar 2010)
New Revision: 60938
URL: http://svn.boost.org/trac/boost/changeset/60938

Log:
Don't allow speculative reads when message_out_of_band is specified.

Text files modified:
   trunk/boost/asio/detail/reactive_socket_service.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/asio/detail/reactive_socket_service.hpp
==============================================================================
--- trunk/boost/asio/detail/reactive_socket_service.hpp (original)
+++ trunk/boost/asio/detail/reactive_socket_service.hpp 2010-03-30 08:28:22 EDT (Tue, 30 Mar 2010)
@@ -1070,7 +1070,7 @@
     start_op(impl,
         (flags & socket_base::message_out_of_band)
           ? reactor::except_op : reactor::read_op,
- ptr.get(), true,
+ ptr.get(), (flags & socket_base::message_out_of_band) == 0,
         (impl.protocol_.type() == SOCK_STREAM
           && buffer_sequence_adapter<boost::asio::mutable_buffer,
             MutableBufferSequence>::all_empty(buffers)));


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk