🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Mario Auer Tue, 06 Mar 2001 13:09
Maximum line length in response
#51005
Author: Mario Auer
Date: Tue, 06 Mar 2001 13:09
12 lines
1272 bytes
Hello everyone!

Reading RFC922 I learned that command lines may not exceed 512 chars.
However, regarding the response I couldn't find any limitation. So would it
be correct to deliver the article body in one single line, or am I missing 
something?

Thanks for reading!

Regards,
Mario
Re: Maximum line length in response
#51033
Author: Russ Allbery
Date: Wed, 07 Mar 2001 03:05
23 lines
1666 bytes
Mario Auer <mario.auer@gmx.net> writes:

> Reading RFC922

I assume you mean RFC 977.

> I learned that command lines may not exceed 512 chars.  However,
> regarding the response I couldn't find any limitation.

Hm.  Interesting.  There probably should be.

> So would it be correct to deliver the article body in one single line,
> or am I missing something?

Well, no, that wouldn't be correct since the response to all commands that
return the article is defined to be a multiline response.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Maximum line length in response
#51045
Author: Mario Auer
Date: Wed, 07 Mar 2001 11:13
31 lines
2045 bytes
Hello!

Russ Allbery wrote:

> Mario Auer <mario.auer@gmx.net> writes:
> 
>> Reading RFC922
> 
> I assume you mean RFC 977.

Yes, I did.

[...]

>> So would it be correct to deliver the article body in one single line,
>> or am I missing something?
> 
> Well, no, that wouldn't be correct since the response to all commands that
> return the article is defined to be a multiline response.

That's true. However, I could compose the response with only a few lines 
that have an arbitrary length. The point is, if I process such a response I 
have to provide means for handling very large line buffers. Although I
think it is not very common to have line lengths exceeding even hundred 
characters. But from the programmer's point of view it would make life 
easier if that were explicitly stated somewhere (and maybe it is and I only 
don't know about it.)

Regards,
Mario
Re: Maximum line length in response
#51059
Author: Russ Allbery
Date: Wed, 07 Mar 2001 20:01
22 lines
2079 bytes
Mario Auer <mario.auer@gmx.net> writes:

> That's true. However, I could compose the response with only a few lines
> that have an arbitrary length. The point is, if I process such a
> response I have to provide means for handling very large line
> buffers. Although I think it is not very common to have line lengths
> exceeding even hundred characters. But from the programmer's point of
> view it would make life easier if that were explicitly stated somewhere
> (and maybe it is and I only don't know about it.)

The *body* of the article isn't subject to any line-length constraints
whatsoever.  That's intentional.  The body of the message could be
entirely one large line.  (Most servers will reject really long headers,
though.)  When reading the body of the message, you can't really think
about reading a line at a time.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads