🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44901

Re: Pipelining IHAVE commands with INN

#44901
From: Andrew Gierth
Date: Wed, 08 Mar 2000 00:00
44 lines
2861 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:

 >> Looking at the comments of dnewslink.c for 1.24-REL, it appears
 >> that if the remote end responds with a 431, dnewslink will treat
 >> this as a 238 and will send the article.

 Curt> The comments in my version say the same thing.  The code
 Curt> howerver doesn't match the comments.

Given that the observed behaviour _does_ match the comments, I suspect
you're misreading the code.

 Curt> Does your code look like this:

 Curt>     case ERR_RESEND:
 Curt>             if ((s = LocateStream(ptr, STATE_POSTED)) != NULL) {
 Curt>                 delMe = 1;
 Curt>                 r = T_REJECTED; /* XXX */
 Curt>                 if (s->st_DumpRCode < 0)
 Curt>                    r = T_REJECTED;
 Curt>                 break;
 Curt>             }
 Curt>             /*
 Curt>              * fall through.  Consider a resend-later response to a check,
 Curt>              * which is really a completely illegal response, to be the
 Curt>              * same as OK_STRMCHECK and let the 'takethis' statemachine
 Curt>              * deal with it.
 Curt>              */

 Curt> The translation of that C code is:

 Curt>    "if the article matching the message-id in the response is
 Curt>    in my list of outstanding articles which I have sent a check
 Curt>    for, delete it, and count it as a reject."

Incorrect. The article is only in STATE_POSTED _after_ it has been
transmitted. If the article has only been CHECKed (the case under
discussion), then LocateStream returns NULL and the code falls through
to the 238 case.

-- 
Andrew.

Technical Details
Message-ID: <871z5lw7sd.fsf@erlenstar.demon.co.uk>
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: <20000307112107.524$na@newsreader.com> <brad-208040.20222807032000@news.skynet.be> <20000307144134.035$KD@newsreader.com> <brad-E330A5.20514107032000@news.skynet.be> <952460805.821101@news.netscum.dk> <20000307170425.247$Qv@newsreader.com> <brad-BF24CC.08211508032000@news.skynet.be> <20000308115245.420$Lt@newsreader.com> <brad-964AFF.19323608032000@news.skynet.be> <20000308144707.860$xL@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <871z5lw7sd.fsf@erlenstar.demon.co.uk>
Subject: Re: Pipelining IHAVE commands with INN
Date: Wed, 08 Mar 2000 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <20000307112107.524$na@newsreader.com> <brad-208040.20222807032000@news.skynet.be> <20000307144134.035$KD@newsreader.com> <brad-E330A5.20514107032000@news.skynet.be> <952460805.821101@news.netscum.dk> <20000307170425.247$Qv@newsreader.com> <brad-BF24CC.08211508032000@news.skynet.be> <20000308115245.420$Lt@newsreader.com> <brad-964AFF.19323608032000@news.skynet.be> <20000308144707.860$xL@newsreader.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: 594845067
X-Mayan-Date: Long count = 12.19.7.0.7; tzolkin = 11 Manik; haab = 15 Kayab
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha