🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Robert Barnes Mon, 30 Mar 1998 00:00
Advice on NNTP protocol usage
#27306
Author: Robert Barnes
Date: Mon, 30 Mar 1998 00:00
11 lines
793 bytes
I am writing a news client and would like advice on the following question:

After issuing a BODY command to a news server to receive the body an
article am I committed to receiving the entire article, or is there a
"correct" way of telling the server to abort the transfer?

TIA
Rob Barnes

Re: Advice on NNTP protocol usage
#27288
Author: Forrest J. Cavalier III
Date: Mon, 30 Mar 1998 00:00
33 lines
1792 bytes
In article <zpHT.5$X3.2171@firestorm.gunslinger.net>, jeremy@exit109.com 
wrote...
>
>Robert Barnes <rbarnes@gil.com.au> wrote:
>
>> After issuing a BODY command to a news server to receive the body an
>> article am I committed to receiving the entire article, or is there a
>> "correct" way of telling the server to abort the transfer?
>
>You're committed to receiving the entire article.  Some newsreaders,
>Netscape's for example, will "abort" the transfer by dropping the
>socket and opening a whole new connection.  This is Extremely Bad;
>please don't do that.

I used to think this was bad also.  But the question is is it better
to waste bandwith and CPU transferring the rest of the article, or
is it better to start up another process?

Certainly on the client side of a modem dial-up, it is better to
start up another connection.  And I haven't seen very many newsservers
with high loads due to reader re-connects.  (Unless you count that
Netscape bug which opens up hundreds of connections a minute....)

>
>-- 
>Jeremy  |  jeremy@exit109.com
>"Never tell me the odds."  --Han Solo

Forrest


Re: Advice on NNTP protocol usage
#27300
Author: Jeremy
Date: Mon, 30 Mar 1998 00:00
17 lines
1204 bytes
Robert Barnes <rbarnes@gil.com.au> wrote:

> After issuing a BODY command to a news server to receive the body an
> article am I committed to receiving the entire article, or is there a
> "correct" way of telling the server to abort the transfer?

You're committed to receiving the entire article.  Some newsreaders,
Netscape's for example, will "abort" the transfer by dropping the
socket and opening a whole new connection.  This is Extremely Bad;
please don't do that.

-- 
Jeremy  |  jeremy@exit109.com
"Never tell me the odds."  --Han Solo

Re: Advice on NNTP protocol usage
#27303
Author: Marc Slemko
Date: Mon, 30 Mar 1998 00:00
45 lines
2638 bytes
In <87pvj48b8l.fsf@ibm.net> tmill06@ibm.net (Timothy J. Miller) writes:

>mibsoft@mibsoftware.com (Forrest J. Cavalier III) writes:

>> I used to think this was bad also.  But the question is is it better
>> to waste bandwith and CPU transferring the rest of the article, or
>> is it better to start up another process?

>	It can be bad depending on how you tweak your timeouts.  I've
>seen more sockets than I care to recall collect waiting to close on
>Netscrape-aborts.

The problem is not that Netscape closes a connection to stop transferring
the rest of the article.

Some of the problems are:

- On some systems, some versions of INN do not detect that the client
  has closed the connection very well so they hang around for too
  long.  This is a problem with INN.

- nnrpds are typically spawned out of innd, which can cause delays
  and causes extra overhead.  Having a parent nnrpd with all the code
  in that can just be mapped COW when it forks would make this better.
  This is partly a INN problem for making connections a bit heavy,
  partly a Navigator problem.

- Netscape uses a moronic method to determine when to drop connections,
  at least in some versions.  When you get 5 new connections and drops
  a second from someone browsing news normally in Navigator, you know
  the program sucks.  That is not appropriate and it should not be
  doing it.  

What it boils down to is the fact that users downloading large
articles over a slow link do not want to wait for the whole article
to finish transferring if they know they don't want it, and
they shouldn't have to wait for it.  Unfortunately, NNT Pdoesn't
provide a graceful abort.  Navigator is justified in closing 
connections if it appears the download may take a while and the
user wants to move to another article, etc.  It should, however,
refuse to stop before a certain time or certain size has been downloaded
(to stop the 5 connects/sec thing).

Re: Advice on NNTP protocol usage
#27308
Author: Timothy J. Miller
Date: Mon, 30 Mar 1998 00:00
13 lines
1118 bytes
mibsoft@mibsoftware.com (Forrest J. Cavalier III) writes:

> Clayton O'Neill's patch to innd to handle SIGPIPE more intelligently
> solves the problem in INN, I believe.  Listed on the INN Patches: readers
> page:

	Now if only my reader machines were running INN... *sigh*.

-- 
Cerebus <tmill06@ibm.net>

Re: Advice on NNTP protocol usage
#27310
Author: Forrest J. Cavalier III
Date: Mon, 30 Mar 1998 00:00
31 lines
1804 bytes
In article <87pvj48b8l.fsf@ibm.net>, tmill06@ibm.net wrote...
>
>mibsoft@mibsoftware.com (Forrest J. Cavalier III) writes:
>
>> I used to think this was bad also.  But the question is is it better
>> to waste bandwith and CPU transferring the rest of the article, or
>> is it better to start up another process?
>
>        It can be bad depending on how you tweak your timeouts.  I've
>seen more sockets than I care to recall collect waiting to close on
>Netscrape-aborts.

If something left a connection open, you have to have an nnrpd around.
But at issue is what happens when netscape aborts by closing the socket.

Clayton O'Neill's patch to innd to handle SIGPIPE more intelligently
solves the problem in INN, I believe.  Listed on the INN Patches: readers
page:

    http://www.mibsoftware.com/userkt/inn/patches/0012.htm

Netscape does have a habit of opening a connection to a server
and leaving it open (and idle) even after the news window has been
closed.  I agree that is a separate problem which exists regardless of
the SIGPIPE handling.  

Forrest


Re: Advice on NNTP protocol usage
#27326
Author: Timothy J. Miller
Date: Mon, 30 Mar 1998 00:00
15 lines
1183 bytes
mibsoft@mibsoftware.com (Forrest J. Cavalier III) writes:

> I used to think this was bad also.  But the question is is it better
> to waste bandwith and CPU transferring the rest of the article, or
> is it better to start up another process?

	It can be bad depending on how you tweak your timeouts.  I've
seen more sockets than I care to recall collect waiting to close on
Netscrape-aborts.

-- 
Cerebus <tmill06@ibm.net>

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