Article View: news.software.nntp
Article #23205Re: INN pause does HISclose() and queued checks
From: Mark Hittinger
Date: Wed, 12 Nov 1997 00:00
Date: Wed, 12 Nov 1997 00:00
88 lines
3374 bytes
3374 bytes
coneill@blah.erols.com writes:
> Until I get the chance to fix
>everything that uses HIShavehistory, I just make it return with a
>"does not exist" if the file is closed. I figure the worst case
>scenario is that we'll reject a few extra articles.
I hate to loose 150 or so articles every time we expire :-)
We could try something like the following test patches against 1.7 although
they fit into 1.4 too. In the TAKETHIS case we'd just issue a resendid
from ARTPOST although we might wind up sending resendid to an ihave.
It looks like innxmit and *EVEN* rnews can handle that :-)
In nc.c we can handle the CHECK case fairly easy but the IHAVE case
appears to be sticky. Innxmit looks like it can handle the resendid
response to an IHAVE but my friend rnews doesn't :-) I wonder about
some of the other software out there such as nntplink, cnews, etc.
I may just be paranoid worrying about the IHAVE case because every single
one of the tests here resulted in only a bunch of CHECKs showing up.
Anyhow I had to do something right away since I'm pausing the servers
so often lately :-)
*** art.c.b4 Wed Nov 12 18:47:08 1997
--- art.c Wed Nov 12 18:52:13 1997
***************
*** 1782,1787 ****
--- 1782,1795 ----
(void)sprintf(Data.TimeReceived, "%lu", Now.time);
Data.TimeReceivedLength = strlen(Data.TimeReceived);
+ if (Mode != OMrunning)
+ {
+ (void)sprintf(buff, "%d %s",
+ NNTP_RESENDIT_VAL, Data.MessageID) ;
+ ARTreject(buff, article) ;
+ return buff ;
+ }
+
/* A duplicate? */
if (error == NULL && HIShavearticle(Data.MessageID)){
error = "Duplicate article";
*** nc.c.b4 Wed Nov 12 18:39:26 1997
--- nc.c Wed Nov 12 19:02:24 1997
***************
*** 594,599 ****
--- 594,607 ----
if (NCbadid(cp, p))
return;
+ if (Mode != OMrunning)
+ {
+ /* Will this wig out old ihave/sendme people ? */
+ (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_RESENDID_VAL, p) ;
+ NCwritereply(cp, cp->Sendid.Data) ;
+ return ;
+ }
+
if (HIShavearticle(p)) {
cp->Refused++;
NCwritereply(cp, NNTP_HAVEIT);
***************
*** 1507,1512 ****
--- 1515,1527 ----
return;
}
+ if (Mode != OMrunning)
+ {
+ (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_RESENDID_VAL, p) ;
+ NCwritereply(cp, cp->Sendid.Data) ;
+ return ;
+ }
+
if (HIShavearticle(p)) {
cp->Refused++;
(void)sprintf(cp->Sendid.Data, "%d %s", NNTP_ERR_GOTID_VAL, p);
------cut above me
Regards,
Mark Hittinger
Netcom/Dallas
bugs@freebsd.netcom.com
Technical Details
Message-ID:
<64dkpd$83l@dfw-ixnews1.ix.netcom.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-mailReferences:
<64cotg$m8e@dfw-ixnews1.ix.netcom.com> <86g1p1kc0s.fsf@blah.erols.com>Show Full Headers
Complete Article Headers
Message-ID: <64dkpd$83l@dfw-ixnews1.ix.netcom.com> Subject: Re: INN pause does HISclose() and queued checks Date: Wed, 12 Nov 1997 00:00:00 +0000 From: bugs@freebsd.netcom.com (Mark Hittinger) References: <64cotg$m8e@dfw-ixnews1.ix.netcom.com> <86g1p1kc0s.fsf@blah.erols.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: 289066138 Organization: Netcom X-NETCOM-Date: Wed Nov 12 7:22:55 PM CST 1997 Newsgroups: news.software.nntp