Subject: Re: [boost] C++ Networking Library Release 0.5
From: James Mansion (james_at_[hidden])
Date: 2010-02-02 15:01:00
Phil Endecott wrote:
> I disagree in general. My parser is primarily an HTTP request
> _header_ parser, and the headers are normally relatively small. For
> most requests (i.e. GETs) the request body doesn't add much, and in
> those cases it is likely that the whole request can be got in a single
> read. In fact browser implementations go to some lengths to make
> their requests fit in single network packets (about 1500 bytes) for
> performance reasons, and single network packets will generally be
> accessible as single reads.
You might see that in the lab against localhost, but as soon as you have
cookies and authentication tokens in play, let alone session state,
referer etc, I think the MTU gets used up rather quickly. If you dump
the headers received there are often plenty.
Its a very dangerous assumption.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk