Boost logo

Boost :

Subject: Re: [boost] [http] Formal Review
From: Vinícius dos Santos Oliveira (vini.ipsmaker_at_[hidden])
Date: 2015-08-16 10:07:48


2015-08-16 0:25 GMT-03:00 Lee Clagett <forum_at_[hidden]>:

> Why would there be an excessive read? The implementation knows before the
> read call that only x bytes can be read, why would it read past that
> amount? If this interface works for ASIO, it would seem suitable for
> reading a sequence of bytes from a HTTP payload.
>

Because it might not even use a buffer. You continue to only think about
the HTTP wire format and the standalone/embedded server use case. It could
be a hypothetical protocol that uses shared memory that get dropped and
must be consumed.

-- 
Vinícius dos Santos Oliveira
https://about.me/vinipsmaker

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk