|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63575 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2010-07-04 03:26:37
Author: chris_kohlhoff
Date: 2010-07-04 03:26:36 EDT (Sun, 04 Jul 2010)
New Revision: 63575
URL: http://svn.boost.org/trac/boost/changeset/63575
Log:
Fixes in non_blocking_read.
Text files modified:
trunk/boost/asio/detail/impl/descriptor_ops.ipp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/asio/detail/impl/descriptor_ops.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/descriptor_ops.ipp (original)
+++ trunk/boost/asio/detail/impl/descriptor_ops.ipp 2010-07-04 03:26:36 EDT (Sun, 04 Jul 2010)
@@ -156,7 +156,7 @@
if (bytes == 0)
{
ec = boost::asio::error::eof;
- return 0;
+ return true;
}
// Retry operation if interrupted by signal.
@@ -169,7 +169,7 @@
return false;
// Operation is complete.
- if (bytes >= 0)
+ if (bytes > 0)
{
ec = boost::system::error_code();
bytes_transferred = bytes;
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