ietf-nntp OVER extension

Andrew Gierth andrew at erlenstar.demon.co.uk
Tue Jul 2 22:39:34 PDT 2002


>>>>> "Clive" == Clive D W Feather <clive at demon.net> writes:

 Clive>   X.X.2 The byte:count metadata item

 Clive>   The byte:count metadata item for an article is a decimal
 Clive>   integer.  It is the number of bytes in the entire article -
 Clive>   both headers, body, and separating blank line - except that
 Clive>   the US-ASCII CRLF at the end of each line counts as one
 Clive>   byte, not two.

Ew. No. Ideally, it should specify the byte count counting all CRLF
pairs as two bytes. There needs to be a warning here that the byte
count may not correspond exactly to the number of octets returned by
an ARTICLE command, because in some server designs that simply isn't
predictable in advance; but that should be the target aimed for.

(An implementation wanting to pre-allocate a buffer for an article
download might choose to use bytes + 2*lines + constant slop, with
perhaps a kbyte of slop; that should behave tolerably well with
existing implementations.)

-- 
Andrew.



More information about the ietf-nntp mailing list