Thread View: news.software.nntp
14 messages
14 total messages
Started by Frank D. Cringle
Sun, 18 Feb 2001 09:47
Transport server and wanttrash
Author: Frank D. Cringle
Date: Sun, 18 Feb 2001 09:47
Date: Sun, 18 Feb 2001 09:47
14 lines
1349 bytes
1349 bytes
Am I right in assuming that there is no point in having more than a minimal active file (junk and control*) if I set wanttrash on a transport-only server running inn-2.3.2? I can then drop all control messages and forget about pgpverify too. I suppose this is somewhat socially undesirable, because the machine will then propagate garbage like comp.no.such.group. I don't see a way of saying "wanttrash, except in properly managed hierarchies". -- Frank Cringle, fdc@cliwe.ping.de voice: (+49 7745) 928759; fax: 928761
Re: Transport server and wanttrash
Author: Frank D. Cringle
Date: Sun, 18 Feb 2001 17:27
Date: Sun, 18 Feb 2001 17:27
14 lines
1447 bytes
1447 bytes
fdc@cliwe.ping.de (Frank D. Cringle) writes: > Am I right in assuming that there is no point in having more than a > minimal active file (junk and control*) if I set wanttrash on a > transport-only server running inn-2.3.2? Experiments show that this is not going to be useful in the way I was hoping for. INN complains to the feeding sites about all the "junk" they are sending, and only feeds to peers that are subscribed to the junk group. So it is not like diablo in transit mode. Oh well. -- Frank Cringle, fdc@cliwe.ping.de voice: (+49 7745) 928759; fax: 928761
Re: Transport server and wanttrash
Author: Frank D. Cringle
Date: Sun, 18 Feb 2001 21:18
Date: Sun, 18 Feb 2001 21:18
21 lines
1876 bytes
1876 bytes
drechsau+usenet@yuck.net (Mike Horwath) writes: > Frank D. Cringle <fdc@cliwe.ping.de> wrote: > : fdc@cliwe.ping.de (Frank D. Cringle) writes: > :> Am I right in assuming that there is no point in having more than a > :> minimal active file (junk and control*) if I set wanttrash on a > :> transport-only server running inn-2.3.2? > > : Experiments show that this is not going to be useful in the way I was > : hoping for. INN complains to the feeding sites about all the "junk" > : they are sending, and only feeds to peers that are subscribed to the > : junk group. So it is not like diablo in transit mode. Oh well. > > Feed junk to your peers? peer:!*,comp.* should only get junk in the comp groups (in my dream world) peer:junk (or variations) would get all the junk in the universe -- Frank Cringle, fdc@cliwe.ping.de voice: (+49 7745) 928759; fax: 928761
Re: Transport server and wanttrash
Author: Jeffrey M. Vinocur
Date: Sun, 18 Feb 2001 21:38
Date: Sun, 18 Feb 2001 21:38
14 lines
1406 bytes
1406 bytes
In article <BrVj6.3955$L6.124472@ruti.visi.com>, Mike Horwath <drechsau+usenet@yuck.net> wrote: > >Feed junk to your peers? He wants to completely ignore any semblence of active file and just take any article that comes in and feed it out again, regardless of whether the newsgroup exists. -- Jeffrey M. Vinocur jeff@litech.org
Re: Transport server and wanttrash
Author: Andrew Gierth
Date: Sun, 18 Feb 2001 21:48
Date: Sun, 18 Feb 2001 21:48
109 lines
5068 bytes
5068 bytes
>>>>> "Frank" == Frank D Cringle <fdc@cliwe.ping.de> writes:
> fdc@cliwe.ping.de (Frank D. Cringle) writes:
>> Am I right in assuming that there is no point in having more than
>> a minimal active file (junk and control*) if I set wanttrash on a
>> transport-only server running inn-2.3.2?
Frank> Experiments show that this is not going to be useful in the
Frank> way I was hoping for. INN complains to the feeding sites
Frank> about all the "junk" they are sending, and only feeds to peers
Frank> that are subscribed to the junk group. So it is not like
Frank> diablo in transit mode. Oh well.
It's actually fairly easy to patch INN to work the way you expect in
this case. This patch is against INN 2.2.2, it may need some tweaking
for newer versions; it works by adding a new inn.conf parameter
"feedtrash" which if set to true, causes articles in nonexistent
groups to be fed as though the groups really existed. (wanttrash must
also be set for this to work.)
diff -c -r1.1.1.3 -r1.1.1.3.2.1
*** include/innconf.h 2000/02/28 19:34:10 1.1.1.3
--- include/innconf.h 2000/03/20 06:58:22 1.1.1.3.2.1
***************
*** 320,326 ****
{ _CONF_NNRPPERLAUTH, "", 2, 1 },
#define _CONF_NNRPDPOSTPORT "nnrpdpostport"
#define CONF_VAR_NNRPDPOSTPORT 99
! { _CONF_NNRPDPOSTPORT, "", 2, 1 }
};
! #define MAX_CONF_VAR 100
--- 320,329 ----
{ _CONF_NNRPPERLAUTH, "", 2, 1 },
#define _CONF_NNRPDPOSTPORT "nnrpdpostport"
#define CONF_VAR_NNRPDPOSTPORT 99
! { _CONF_NNRPDPOSTPORT, "", 2, 1 },
! #define _CONF_FEEDTRASH "feedtrash"
! #define CONF_VAR_FEEDTRASH 100
! { _CONF_FEEDTRASH, "", 2, 0 }
};
! #define MAX_CONF_VAR 101
diff -c -r1.1.1.4 -r1.1.1.4.2.1
*** include/libinn.h 2000/02/28 19:38:24 1.1.1.4
--- include/libinn.h 2000/03/20 06:58:22 1.1.1.4.2.1
***************
*** 100,105 ****
--- 100,106 ----
int verifycancels; /* Verify cancels against article author */
int logcancelcomm; /* Log "ctlinnd cancel" commands to syslog? */
int wanttrash; /* Put unwanted articles in 'junk' */
+ int feedtrash; /* Feed the junk group as though the groups really existed */
int remembertrash; /* Put unwanted article ID's into history */
int linecountfuzz; /* Check linecount and adjust of out by more */
int peertimeout; /* How long peers can be inactive */
diff -c -r1.1.1.5 -r1.1.1.5.2.3
*** innd/art.c 2000/02/28 19:38:27 1.1.1.5
--- innd/art.c 2000/03/22 05:51:44 1.1.1.5.2.3
***************
*** 2390,2395 ****
--- 2450,2460 ----
* would or would have had the group if it were created. */
ARTsendthegroup(*groups);
Accepted = TRUE;
+ } else if (innconf->wanttrash && innconf->feedtrash) {
+ /* dont set Accepted in this case, because we may still end
+ * up filing the article in the junk group. */
+ ARTsendthegroup(*groups);
+ NonExist = TRUE;
} else
NonExist = TRUE;
ARTpoisongroup(*groups);
diff -c -r1.1.1.4 -r1.1.1.4.2.1
*** lib/getconfig.c 2000/02/28 19:36:58 1.1.1.4
--- lib/getconfig.c 2000/03/20 06:58:24 1.1.1.4.2.1
***************
*** 193,198 ****
--- 193,199 ----
innconf->verifycancels = FALSE;
innconf->logcancelcomm = FALSE;
innconf->wanttrash = FALSE;
+ innconf->feedtrash = FALSE;
innconf->remembertrash = TRUE;
innconf->linecountfuzz = 0;
innconf->peertimeout = 1 * 60 * 60;
***************
*** 614,619 ****
--- 615,625 ----
TEST_CONFIG(CONF_VAR_WANTTRASH, bit);
if (!bit && boolval != -1) innconf->wanttrash = boolval;
SET_CONFIG(CONF_VAR_WANTTRASH);
+ } else
+ if (EQ(ConfigBuff,_CONF_FEEDTRASH)) {
+ TEST_CONFIG(CONF_VAR_FEEDTRASH, bit);
+ if (!bit && boolval != -1) innconf->feedtrash = boolval;
+ SET_CONFIG(CONF_VAR_FEEDTRASH);
} else
if (EQ(ConfigBuff,_CONF_REMEMBERTRASH)) {
TEST_CONFIG(CONF_VAR_REMEMBERTRASH, bit);
--
Andrew.
Re: Transport server and wanttrash
Author: Russ Allbery
Date: Sun, 18 Feb 2001 22:26
Date: Sun, 18 Feb 2001 22:26
14 lines
1620 bytes
1620 bytes
Frank D Cringle <fdc@cliwe.ping.de> writes:
> peer:!*,comp.* should only get junk in the comp groups (in my dream world)
> peer:junk (or variations) would get all the junk in the universe
Yeah, INN doesn't work like that; the internal architecture is, at
present, fairly incompatible with making this work.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Transport server and wanttrash
Author: Andrew Gierth
Date: Sun, 18 Feb 2001 22:57
Date: Sun, 18 Feb 2001 22:57
16 lines
1740 bytes
1740 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes: > Frank D Cringle <fdc@cliwe.ping.de> writes: >> peer:!*,comp.* should only get junk in the comp groups (in my dream world) >> peer:junk (or variations) would get all the junk in the universe Russ> Yeah, INN doesn't work like that; the internal architecture is, Russ> at present, fairly incompatible with making this work. erm... seems to work OK for me, see the patch I posted in this thread (of which only about 5 lines is needed for the real work, the rest is configuration stuff) -- Andrew.
Re: Transport server and wanttrash
Author: Russ Allbery
Date: Sun, 18 Feb 2001 23:05
Date: Sun, 18 Feb 2001 23:05
15 lines
1779 bytes
1779 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:
> erm... seems to work OK for me, see the patch I posted in this thread
> (of which only about 5 lines is needed for the real work, the rest is
> configuration stuff)
Oh, okay, yeah, you can do it that way. I forgot about that function
(which is used for feeding control messages).
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Transport server and wanttrash
Author: Charlie Crybaby
Date: Mon, 19 Feb 2001 02:33
Date: Mon, 19 Feb 2001 02:33
32 lines
2932 bytes
2932 bytes
:: >> Am I right in assuming that there is no point in having more than :: >> a minimal active file (junk and control*) if I set wanttrash on a :: >> transport-only server running inn-2.3.2? :: Frank> Experiments show that this is not going to be useful in the :: Frank> way I was hoping for. INN complains to the feeding sites :: Frank> about all the "junk" they are sending, and only feeds to peers Really? This must be new. I haven't seen this problem in the feeders I've set up with this very configuration. The only real difference is roughly doubling the size of the `news' logfile as each article gets two entries, one for the unwanted group, but that shouldn't go back to the peer. :: Frank> that are subscribed to the junk group. So it is not like :: Frank> diablo in transit mode. Oh well. :: It's actually fairly easy to patch INN to work the way you expect in :: this case. This patch is against INN 2.2.2, it may need some tweaking :: for newer versions; it works by adding a new inn.conf parameter :: "feedtrash" which if set to true, causes articles in nonexistent :: groups to be fed as though the groups really existed. (wanttrash must Please eduficate me how this differs from the transit machines I've set up without this patch, where it automagically works to send out articles in groups not in the active file by simply specifying `*' as the subscription. Basically the peer gets everything or nothing. I may be too tired to think straight or else I'm overlooking something that isn't immediately obvious to me from these messages... thanx
Re: Transport server and wanttrash
Author: Russ Allbery
Date: Mon, 19 Feb 2001 04:00
Date: Mon, 19 Feb 2001 04:00
18 lines
1912 bytes
1912 bytes
Charlie Crybaby <autocyberretributionmeowbot@plunk.invalid> writes:
> Please eduficate me how this differs from the transit machines I've set
> up without this patch, where it automagically works to send out articles
> in groups not in the active file by simply specifying `*' as the
> subscription. Basically the peer gets everything or nothing. I may be
> too tired to think straight or else I'm overlooking something that isn't
> immediately obvious to me from these messages... thanx
Andrew's patch lets you use patterns other than * and have them work the
way you want even without an active file.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Transport server and wanttrash
Author: Charlie Cornball
Date: Mon, 19 Feb 2001 05:02
Date: Mon, 19 Feb 2001 05:02
18 lines
2330 bytes
2330 bytes
:: > Please eduficate me how this differs from the transit machines I've set :: Andrew's patch lets you use patterns other than * and have them work the :: way you want even without an active file. Remind me not to seek work in any business where I need to think. I guess I missed the business end of things in the patch. So, since the use of an array of groups based on an active file has shown itself to be efficient, far more so than the wildcard group pattern matching done by other software, for even horrifyingly- complex subscription patterns (with the drawback being the time needed to create the array at each reload/newgroup increasing for additional groups and additional peers), does this ARTsendthegroup usage cause a significant performance penalty? I should try to figure it out from the k0de but I've been batting zero for quite some time...
Re: Transport server and wanttrash
Author: Russ Allbery
Date: Mon, 19 Feb 2001 06:11
Date: Mon, 19 Feb 2001 06:11
29 lines
2574 bytes
2574 bytes
Charlie Cornball <autocyberretributionmeowbot@plink.invalid> writes:
> Remind me not to seek work in any business where I need to think. I
> guess I missed the business end of things in the patch. So, since the
> use of an array of groups based on an active file has shown itself to be
> efficient, far more so than the wildcard group pattern matching done by
> other software, for even horrifyingly-complex subscription patterns
> (with the drawback being the time needed to create the array at each
> reload/newgroup increasing for additional groups and additional peers),
> does this ARTsendthegroup usage cause a significant performance penalty?
Not if your patterns are simple, I think, but yeah, if you're using the
really complex patterns like a lot of my newsfeeds do, I think you'll
notice the CPU hit.
> I should try to figure it out from the k0de but I've been batting
> zero for quite some time...
The reason why it wasn't obvious to follow what Andrew's patch is doing is
that the code to feed an article by matching its Newsgroups header was
already in INN. It was previously just only triggered for newgroup and
rmgroup messages.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Transport server and wanttrash
Author: Andrew Gierth
Date: Mon, 19 Feb 2001 14:17
Date: Mon, 19 Feb 2001 14:17
24 lines
2407 bytes
2407 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes: > Charlie Cornball <autocyberretributionmeowbot@plink.invalid> writes: >> Remind me not to seek work in any business where I need to think. >> I guess I missed the business end of things in the patch. So, >> since the use of an array of groups based on an active file has >> shown itself to be efficient, far more so than the wildcard group >> pattern matching done by other software, for even >> horrifyingly-complex subscription patterns (with the drawback >> being the time needed to create the array at each reload/newgroup >> increasing for additional groups and additional peers), does this >> ARTsendthegroup usage cause a significant performance penalty? Russ> Not if your patterns are simple, I think, but yeah, if you're Russ> using the really complex patterns like a lot of my newsfeeds Russ> do, I think you'll notice the CPU hit. Note that nothing stops you from having an active file in addition to using the patch; the overhead of doing wildmat tests on each newsfeeds entry only occurs for groups which are not found in the active file. -- Andrew.
Re: Transport server and wanttrash
Author: bill davidsen
Date: Tue, 06 Mar 2001 18:16
Date: Tue, 06 Mar 2001 18:16
22 lines
2034 bytes
2034 bytes
In article <vt1yswe31g.fsf@cliwe.ping.de>, Frank D. Cringle <fdc@cliwe.ping.de> wrote: | Am I right in assuming that there is no point in having more than a | minimal active file (junk and control*) if I set wanttrash on a | transport-only server running inn-2.3.2? | | I can then drop all control messages and forget about pgpverify too. The only reason for having more in active is to allow feeding subsets of articles to peers. The wildmat doesn't work unless stuff is in active. I did a patch to not drop group names in the newsgroups header if wanttrash was set, but it was unpleasantly CPU intensive to run. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc At LinuxExpo Sun was showing Linux applications running on Solaris. They don't get it, the arrow points the other way. There's a reason why there's no SolarisExpo, Solaris is a tool; Linux is a philosophy, a religion, a way of life, and only incidentally an operating system.
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