Re: HTTP/1.1 : Chunking

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