Boost logo

Boost Users :

Subject: Re: [Boost-users] Asio::Async_read_some - bytes_transferred=0!
From: Igor R (boost.lists_at_[hidden])
Date: 2010-06-25 08:49:47


> I am using async_read_some() to read data from a tcp connection. In the
> "async_read_some" handler, sometimes the "bytes_transferred" is zero, and
> also sometimes causes an error in the read handler called "The I/O operation
> has been aborted because of either a thread exit or an application request"
>
> What could be the reason? Is this an expected behavior?

This error usually means that you called socket.close()


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net