🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18387

Re: INN Performance Patch

#18387
From: Jerry Aguirre
Date: Tue, 10 Jun 1997 00:00
74 lines
4431 bytes
In article <5nhpsu$189g$1@newssvr06-int.news.prodigy.com>,
bill davidsen <davidsen@tmr.com> wrote:
>Here's a thought... when an article is offered and it's in transit,
>reject it but keep track of which site offered it. If the transfer
>fails, could you simply rejuest it from a site which offered it,
>even though you rejected it? Interesting thought, I haven't check

At least for innxmit this will not work.  The streaming code in innxmit
keeps track of the outstanding message IDs.  It won't let you fake an
"i want that ID" response for some other ID not in the current CHECK or
TAKETHIS list.

There are several other options including option 3 which is one I don't
remember seeing proposed before:

1 Pause the subsequent connections.  This is what innd did for the
  simple "IHAVE" case when more than one was offered.

2 Send a "send it later" code.  Innxmit should retry a couple of times
  (5 currently) during that sesson and then requeue to disk for the next
  run.

3 Keep track of the message ID of the subsequent "CHECK"s but go on
  processing other IDs.  Later, when the article has been
  completely transferred send back an appropriate response to all who
  offered it.  The client that actually transferred the article gets a
  successful response code for that ID.  All the other clents that
  offered that article via "CHECK" get a refusal status for that ID.
  As the return stream is modeless the response can be sent back at any
  time.

  As currently coded innxmit will keep on sending other IDs and
  accept a response on an ID later and out of sequence.  There are
  limits on how far this can be stretched but it should still be
  sufficient for handling simultainious CHECKs.  In particular innxmit
  will keep track of the IDs for which there has been no response.  If
  enough (16-32) other IDs get responses it will retry the
  transmission on the assumption that the server has lost track of it.
  After a few (5) of these it will abort the connection.

  This ability to return responses out of sequence was one of the
  justifications for including the message ID in each response.  It was
  suggested that the client could guess the ID from the sequence of
  responses.  This would have limited the flexability of the client to
  process multiple articles in parallel and return the status on
  completion rather than in sequence.

  So the server could simply postpone responding to a "CHECK" for which
  other "CHECK", "TAKETHIS", or "IHAVE"s had been received.  It would
  process the next ID instead.  Perhaps it could keep the deferred
  IDs in a list associated with that incomming connection.  Some limit
  to how many it could postpone would be desirable to avoid tripping
  innxmit's retransmission counters.

  Even in the case where several feeds offer the exact same
  sequence of articles this would allow the client to avoid duplicates
  and get all the articles reliably.  Client 1 would offer article A
  and be asked to send it.  Client 2 would also offer article A but be
  postponed.  Client 2 would then offer article B and be asked to
  transfer it.  Client 3 would postpone both A and B and transfer
  article C instead.  Eventually article A would be processed from
  server A and acknowledged.  At that time a duplicate refusal would be
  sent to both client 2 and 3 for that ID.  Meanwhile all 3 clients
  would continue to provide useful transfers and divide the load.

  If this doesn't work with some other streaming client then that
  client is broken(TM).  This doesn't address IHAVE connections but I
  don't think anything can.  The old IHAVE protocol is just too limited
  to keep up with current demands.

				Jerry Aguirre

Technical Details
Message-ID: <5nibca$e12$1@fes.whowhere.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5mt7et$s52$1@turing.mathworks.com> <5n55uk$3ts$1@fes.whowhere.com> <33964CF1.3CA5ACF0@spinne.com> <5nhpsu$189g$1@newssvr06-int.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <5nibca$e12$1@fes.whowhere.com>
Subject: Re: INN Performance Patch
Date: Tue, 10 Jun 1997 00:00:00 +0000
From: jerry@rigel.whowhere.com (Jerry Aguirre)
References: <5mt7et$s52$1@turing.mathworks.com> <5n55uk$3ts$1@fes.whowhere.com> <33964CF1.3CA5ACF0@spinne.com> <5nhpsu$189g$1@newssvr06-int.news.prodigy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 247331207
Organization: WhoWhere?; Mt. View, CA USA
Newsgroups: news.software.nntp