🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Russ Allbery Sun, 09 Feb 2003 19:06
Re: Pipelining...
#63968
Author: Russ Allbery
Date: Sun, 09 Feb 2003 19:06
30 lines
2330 bytes
Colin Wilson <colin@wilsonc.demon.co.uk> writes:

> The most recent versions of XanaNews do pipelining which speeds it up
> hugely.

> Someone suggested that I should send a 'MODE STREAM' command before
> issuing pipelined commands - but from what I can see from the RFC, 'MODE
> STREAM' is meant to be sent by peer servers, not newsreader clients.
> AFAICT, newsreader clients should only ever send 'MODE READER'.

> Does anyone have any more information on this?

Yeah, someone was confused.  Streaming (which is a different set of
commands for transferring articles between peers) is something completely
different than pipelining (which is sending multiple commands before
waiting for a response from the server).  You can do the latter without
issuing any special commands first, and MODE STREAM is definitely wrong
for a reader as you guessed.

So far as I know, every server out there supports pipelining, as long as
you avoid pipelining a few commands that can cause significant state
changes in the server or that don't make sense with pipelining (MODE
READER, AUTHINFO, and POST being the obvious ones).

-- 
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: Pipelining...
#63971
Author: J.B. Moreno
Date: Sun, 09 Feb 2003 22:57
37 lines
2628 bytes
In article <yl7kc9i89u.fsf@windlord.stanford.edu>, 
 Russ Allbery <rra@stanford.edu> wrote:

> Colin Wilson <colin@wilsonc.demon.co.uk> writes:
> 
> > The most recent versions of XanaNews do pipelining which speeds it up
> > hugely.
> 
> > Someone suggested that I should send a 'MODE STREAM' command before
> > issuing pipelined commands - but from what I can see from the RFC, 'MODE
> > STREAM' is meant to be sent by peer servers, not newsreader clients.
> > AFAICT, newsreader clients should only ever send 'MODE READER'.
> 
> > Does anyone have any more information on this?

-snip MODE STREAM has nothing to do with pipelining-

> So far as I know, every server out there supports pipelining, as long as
> you avoid pipelining a few commands that can cause significant state
> changes in the server or that don't make sense with pipelining (MODE
> READER, AUTHINFO, and POST being the obvious ones).

And even then, the real difficulty is that it /may/ cause a different
state change than you expect -- for instance, POST may be refused, and
if you go ahead and send the body of the message without seeing if it's
allowed, you can loose the sync between command and response.  And it
might be confusing if you tried to change groups and that failed (next,
stat, xover, head and article would apply to the wrong group).

As for server support -- servers should support it, but some of the
webboard/nntp servers may not do so very well (of course, they tend not
to do anything very well, so that's hardly surprising, still a
preference wouldn't be amiss).

-- 
J.B. Moreno
Re: Pipelining...
#63972
Author: Russ Allbery
Date: Sun, 09 Feb 2003 23:04
16 lines
1677 bytes
J B Moreno <planb@newsreaders.com> writes:

> As for server support -- servers should support it, but some of the
> webboard/nntp servers may not do so very well (of course, they tend not
> to do anything very well, so that's hardly surprising, still a
> preference wouldn't be amiss).

It's kind of hard to break pipelining, unless you decide to do really bad
things with your network input.

-- 
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: Pipelining...
#63977
Author: Peter Robinson
Date: Mon, 10 Feb 2003 10:33
33 lines
2161 bytes
Russ Allbery <rra@stanford.edu> wrote:

> Yeah, someone was confused.  Streaming (which is a different set of
> commands for transferring articles between peers) is something completely
> different than pipelining (which is sending multiple commands before
> waiting for a response from the server).

An understandable mistake IMHO.  Perhaps that someone read a recent IETF
NNTP draft.  The last one I read called it streaming:

|         Except where stated otherwise, a client MAY use streaming. 
|         That is, it may send a command before receiving the response 
|         for the previous command.

which is more than a bit confusing if you also read about MODE STREAM in
RFC 2980:

|MODE STREAM
|
|  MODE STREAM is used by a peer to indicate to the server that it would
|  like to suspend the lock step conversational nature of NNTP and send
|  commands in streams.

Although it does go on to say

|                        This command should be used before TAKETHIS and
|  CHECK.  See the section on the commands TAKETHIS and CHECK for more
|  details.

Pipelining is much clearer.

Peter
Re: Pipelining...
#63979
Author: Curt Welch
Date: Mon, 10 Feb 2003 16:01
38 lines
2413 bytes
pmrobinson@gmx.net (Peter Robinson) wrote:
> An understandable mistake IMHO.  Perhaps that someone read a recent IETF
> NNTP draft.  The last one I read called it streaming:
>
> |         Except where stated otherwise, a client MAY use streaming.
> |         That is, it may send a command before receiving the response
> |         for the previous command.
>
> which is more than a bit confusing if you also read about MODE STREAM in
> RFC 2980:
>
> |MODE STREAM
> |
> |  MODE STREAM is used by a peer to indicate to the server that it would
> |  like to suspend the lock step conversational nature of NNTP and send
> |  commands in streams.

Yeah, that realy needs to be rewritten something like this:

  MODE STREAM

    MODE STREAM is used by a peer to indicate to the server that it would
    like to use the CHECK and TAKETHIS commands to stream articles.

> Although it does go on to say
>
> |                        This command should be used before TAKETHIS and
> |  CHECK.  See the section on the commands TAKETHIS and CHECK for more
> |  details.
>
> Pipelining is much clearer.

Yes, it would make the RFC better to word it that way.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Pipelining...
#63982
Author: Russ Allbery
Date: Mon, 10 Feb 2003 18:53
22 lines
1895 bytes
Peter Robinson <pmrobinson@mail.com> writes:

> An understandable mistake IMHO.  Perhaps that someone read a recent IETF
> NNTP draft.  The last one I read called it streaming:

> |         Except where stated otherwise, a client MAY use streaming. 
> |         That is, it may send a command before receiving the response 
> |         for the previous command.

> which is more than a bit confusing if you also read about MODE STREAM in
> RFC 2980:

Thanks, I'll pass this along to the working group.  We should probably use
pipelining everywhere for this, since that's the terminology that SMTP
uses.

-- 
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