Article View: news.software.nntp
Article #31398Re: rnews and cleanfeed mid filter
From: John Payne
Date: Tue, 15 Sep 1998 00:00
Date: Tue, 15 Sep 1998 00:00
73 lines
3779 bytes
3779 bytes
On 14 Sep 1998 19:09:38 GMT, Jeremy <jeremy@exit109.com> wrote:
>> Sep 14 10:58:49 janeway rnews: unknown_reply after article 239
>> <cancel.14099821.1908@news.hardnflat.com>
>
>Looks like innd is sending back streaming replies to a non-streaming
>connection, when the perl filter tells it to refuse something.
>
>I think I've heard this one before, probably from Barry, who is
>famous for not streaming. Did someone fix this?
Yeah, it was Barry, complaining about me....
I fixed the initial non-streaming problem ... but now he's seeing
239's which as far as I can see doesn't appear anywhere in the code
NCihave (non-streaming)
...
#if defined(DO_PERL)
/* invoke a perl message filter on the message id */
if ((perlrc = (char *)HandleMessageID(p,cp->Address)) != NULL) {
cp->Refused++;
msglen = strlen(p) + 5; /* 3 digits + space + id + null */
if (cp->Sendid.Size < msglen) {
if (cp->Sendid.Size > 0) DISPOSE(cp->Sendid.Data);
if (msglen > MAXHEADERSIZE) cp->Sendid.Size = msglen;
else cp->Sendid.Size = MAXHEADERSIZE;
cp->Sendid.Data = NEW(char, cp->Sendid.Size);
}
/* (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_ERR_GOTID_VAL, p); */
(void)sprintf(cp->Sendid.Data, "%d %s", NNTP_HAVEIT_VAL, p);
NCwritereply(cp, cp->Sendid.Data);
syslog(L_NOTICE, "refusing[perl] %s %d %s", p,NNTP_HAVEIT_VAL, perlrc);
return;
}
#endif
NCcheck (streaming)
#if defined(DO_PERL)
/* invoke a perl message filter on the message id */
if ((perlrc = (char *)HandleMessageID(p,cp->Address)) != NULL) {
cp->Refused++;
(void)sprintf(cp->Sendid.Data, "%d %s", NNTP_ERR_GOTID_VAL, p);
NCwritereply(cp, cp->Sendid.Data);
syslog(L_NOTICE, "refusing[perl] %s %d %s", p, NNTP_ERR_GOTID_VAL, perlrc);
return;
}
#endif
Notice that NCihave sends NNTP_HAVEIT_VAL rather than NNTP_ERR_GOTID_VAL
HAVEIT is non-streaming, GOTID is streaming.
[newsfeed:/usr/local/news/src/latest/innd 0]$ grep NNTP_ERR_GOTID_VAL ../include/*.h
../include/nntp.h:#define NNTP_ERR_GOTID_VAL 438 /* Got <id>, don't send */
[newsfeed:/usr/local/news/src/latest/innd 0]$ grep NNTP_HAVEIT_VAL ../include/*.h
../include/nntp.h:#define NNTP_HAVEIT_VAL 435
Now... Barry is still seeing 239's from me. Where the f*** they are coming
from, I have *NO* idea. For completeness:
[newsfeed:/usr/local/news/src/latest/innd 0]$ grep 239 ../include/*.h
../include/nntp.h:#define NNTP_OK_RECID_VAL 239 /* Article <id> received OK */
../include/nntp.h:#define NNTP_OK_XBATCHED_VAL 239 /* Batch transferred successfully */
../include/nntp.h:#define NNTP_OK_XBATCHED "239"
--
John Payne http://www.sackheads.org/jpayne john@sackheads.org
Sarcasm by request Fax: +44 870 0547954
Technical Details
Message-ID:
<slrn6vt261.hqp.john+usenet@haybaler.sackheads.org>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-mailReferences:
<6tj7bs$710$1@kira.allgaeu.org> <6tjpli$ic9$1@news1.exit109.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn6vt261.hqp.john+usenet@haybaler.sackheads.org> Subject: Re: rnews and cleanfeed mid filter Date: Tue, 15 Sep 1998 00:00:00 +0000 From: john+usenet@sackheads.org (John Payne) References: <6tj7bs$710$1@kira.allgaeu.org> <6tjpli$ic9$1@news1.exit109.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: 391372668 Sender: jpayne@localhost.sackheads.org X-Complaints-To: abuse@sackheads.org X-Trace: haybaler.sackheads.org 905873601 18266 127.0.0.1 (15 Sep 1998 15:33:21 GMT) Organization: sackHeads NNTP-Posting-Date: 15 Sep 1998 15:33:21 GMT Newsgroups: news.software.nntp