16 Aug
2015
16 Aug
'15
2:07 p.m.
2015-08-16 0:25 GMT-03:00 Lee Clagett
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