Thread View: news.software.nntp
3 messages
3 total messages
Started by Brian Kramer
Mon, 28 Jul 1997 00:00
Cancel Patches?
Author: Brian Kramer
Date: Mon, 28 Jul 1997 00:00
Date: Mon, 28 Jul 1997 00:00
11 lines
906 bytes
906 bytes
Are there any patches or suggestions of ways to deal with the huge # of cancel messages? -- Brian Kramer - Owner/Systems Administrator - bjkramer@pluto.njcc.com New Jersey Computer Connection - Internet Service Provider - pluto.njcc.com Voice: 609-896-2799 - Fax: 609-896-2994 - Dialups: 609-896-3191 & 896-2722 Web: http://www.njcc.com/ Telnet/Dialup: pluto.njcc.com login as guest.
Re: Cancel Patches?
Author: Sang-yong Suh
Date: Mon, 28 Jul 1997 00:00
Date: Mon, 28 Jul 1997 00:00
47 lines
2242 bytes
2242 bytes
In article <5rgrrn$o49$1@mars.njcc.com>,
Brian Kramer <bjkramer@pluto.njcc.com> wrote:
>Are there any patches or suggestions of ways to deal with the huge # of
>cancel messages?
If you are not feeding significant amount of articles to other servers,
you can delete the old cancel messages, i.e., keeping the total number
of cancel messages in your spool. For me, I am using innfeed to
transfer the cancel messages of the local user to my feeders.
Therefore, I don't need to keep all such a huge number of cancel
messages, which slowed down the news server performacne.
The following patch will keep the number of cancel messages by 8,000
which I think is sufficiently big enough for a leaf site.
It is relative to inn-1.6b2.
Hope this helps,
--
Sang-yong Suh
--- innd/art.c.orig Mon Jul 28 10:44:51 1997
+++ innd/art.c Mon Jul 28 10:52:41 1997
@@ -2691,6 +2691,20 @@
}
}
+#define MAXCANCELS 8000
+#ifdef MAXCANCELS
+ /* keep size of the cancel directory managable by deleting olds */
+ if (ControlHeader >= 0 && Accepted && !ToGroup &&
+ strcmp(ControlWord, "cancel") == 0) {
+ if ((ngp = NGfind("control.cancel")) == NULL)
+ ngp = NGfind(ARTctl);
+ if (ngp->Filenum - MAXCANCELS > 0) {
+ (void)sprintf(buff, "%s/%lu", ngp->Dir, ngp->Filenum-MAXCANCELS);
+ unlink(buff);
+ }
+ }
+#endif /* MAXCANCELS */
+
/* Update history if we didn't get too many I/O errors above. */
if (Mode != OMrunning || !HISwrite(&Data, Files.Data)) {
i = errno;
Re: Cancel Patches?
Author: Michael Hucka
Date: Wed, 30 Jul 1997 00:00
Date: Wed, 30 Jul 1997 00:00
24 lines
1685 bytes
1685 bytes
>>>>> On 28 Jul 1997, bjkramer@pluto.njcc.com (Brian Kramer) wrote: bjkramer> Are there any patches or suggestions of ways to deal with the bjkramer> huge # of cancel messages? I'm running Joe Greco's patch (from http://www.nntp.sol.net/patches/) and it's been working quite wonderfully for a couple of weeks. Make sure to read the notes at the top of the file. The only problem I've run into is that my expire isn't expiring the old cancel messages, so I've been deleting them manually periodically. I *think* I have an idea of what the problem is, but I haven't had time to deal with it. There is also a more general patch by Heiko Rupp, recently posted to this newsgroup, that uses the same idea as Joe's patch, but applies it to all directories, not just the control/cancel directory. I haven't had time to try it, but it looks like a winner. -- Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University PhD to be, computational models of human visual processing (AI Lab) of UNIX systems administrator & programmer/analyst (EECS DCO) Michigan
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