From: Billy Chasen (billy.chasen_at_[hidden])
Date: 2008-04-02 16:50:27
I've since found the root of the problem -- and it has nothing to do
with the delim
If I have a client send data to the server (which is using async_read_until)
If that client sends in a tight for-loop -- async_read_until returns
If I put even the smallest delays in the loop, the server responds perfectly
The server code I am using is the async chat server off of boost.org
On Tue, Apr 1, 2008 at 7:16 PM, Christopher Kohlhoff <chris_at_[hidden]> wrote:
> Billy Chasen wrote:
> > I'm creating a server using boost:asio and am receiving data that ends
> > with a \0 char (from flash sockets if you're curious)
> > async_read_until seems to not like this as the delimiter. (If I switch
> > to a diff delim like \r\n it works fine)
> > How can I get async_read_until to work properly?
> How are you specifying the delimiter? How are you extracting the data
> from the streambuf once the operation finishes?
> It works for me when I use a single char delimiter of '\0', and the
> implementation of async_read_until doesn't have any special treatment
> for '\0'.
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk