W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 1998

Re: HTTP/1.1 : Chunking

From: Ben Laurie <ben@algroup.co.uk>
Date: Thu, 29 Jan 1998 18:21:41 +0000
Message-Id: <34D0C8B5.43178D8@algroup.co.uk>
To: Adrien de Croy <adrien@qbik.com>
Cc: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/5309
Adrien de Croy wrote:
> A proposal for the end tag could be say a 4 byte magic number. So there
> would be a 1 in 4 billion chance of there being a natural conflict caused by
> a premature close on the connection with the last 4 bytes of the last packet
> being the magic number.  If this were thought too risky, simply increasing
> the length would serve to render this event less likely.

That's a pretty dodgy bit of maths. What you mean is that for any
particular 4-byte sequence there's a 1 in 4 billion chance, so in 1 MB
of data, the probability is (roughly) 1 in 4000. Or, over a 64 kb/s link
at full capacity, about one mistake a week.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache
Received on Thursday, 29 January 1998 10:23:44 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:04 UTC