Thread View: news.software.nntp
4 messages
4 total messages
Started by Mark Burkley
Wed, 27 Jan 1999 00:00
Re: *XPOST-SLACK* Re: All articles from @Home being cancelled in ars
Author: Mark Burkley
Date: Wed, 27 Jan 1999 00:00
Date: Wed, 27 Jan 1999 00:00
43 lines
2753 bytes
2753 bytes
meowing@banet.net (Fluffy) wrote: >Mark Burkley <mburkley@iol.ie> wrote: >> somewhere (strangely, sometimes news-read says OK to CHECK but then >> nacks the IHAVE). > >So someone else sneaked the cancel in while you were posting it. [follow-ups set to news.software.nntp] Nope, it's repeatable. I can run the same list of message-ids through twice and the same ones will get a 238 from CHECK, but still get a 435 from IHAVE. Stranger still, the second time I ran it, an article got accepted that was refused the first time. I know I should probably use TAKETHIS after using CHECK, but I would have thought it's ok to do what I'm doing. Is there some strange statefulness between CHECK and IHAVE? It's a cyclone router, but I tested on an INN peer and I get the same result: <-- 200 ***** InterNetNews server INN 1.7.2 08-Dec-1997 ready --> check <001.0021@test.test> <-- 238 <001.0021@test.test> --> ihave <001.0021@test.test> <-- 435 Duplicate Weird, huh? I only added the CHECK bit recently to optimise it a bit, it saves me from having to fetch the head of the original article if I know the cancel will be refused anyway. Anyway, I'll change the code to use TAKETHIS, it seems to be more predictable. -- Mark Burkley -> mburkley@iol.ie PGP Public Key -> http://www.iol.ie/~mburkley/pgp.html News filter -> http://www.iol.ie/~mburkley/nfilter/nfilter.html
Re: *XPOST-SLACK* Re: All articles from @Home being cancelled in ars
Author: Fluffy
Date: Wed, 27 Jan 1999 00:00
Date: Wed, 27 Jan 1999 00:00
20 lines
2202 bytes
2202 bytes
Mark Burkley <mburkley@iol.ie> wrote: > I know I should probably use TAKETHIS after using CHECK, but I would > have thought it's ok to do what I'm doing. Is there some strange > statefulness between CHECK and IHAVE? Yup, IHAVE is a combination of CHECK and TAKETHIS all by itself. (More correctly, CHECK and TAKETHIS are a split-up IHAVE, but hey, it works either way.) Since the first thing IHAVE does is report if the article is wanted (TAKETHIS skips that part), you'll see failures because you just precommitted yourself with the earlier CHECK that hasn't yet timed out. So: If you're using CHECK, follow it up with TAKETHIS. If you're using IHAVE, leave CHECK out if it. If you still want to do a check-like thing before the IHAVE for some reason, STAT might be a better bet. -- "Meow." --me
Re: *XPOST-SLACK* Re: All articles from @Home being cancelled in ars
Author: Mark Burkley
Date: Wed, 27 Jan 1999 00:00
Date: Wed, 27 Jan 1999 00:00
33 lines
2477 bytes
2477 bytes
On 27 Jan 1999 13:25:54 GMT, meowing@banet.net (Fluffy) wrote: >Mark Burkley <mburkley@iol.ie> wrote: >> I know I should probably use TAKETHIS after using CHECK, but I would >> have thought it's ok to do what I'm doing. Is there some strange >> statefulness between CHECK and IHAVE? > >Yup, IHAVE is a combination of CHECK and TAKETHIS all by itself. >(More correctly, CHECK and TAKETHIS are a split-up IHAVE, but hey, it >works either way.) > >Since the first thing IHAVE does is report if the article is wanted >(TAKETHIS skips that part), you'll see failures because you just >precommitted yourself with the earlier CHECK that hasn't yet timed out. > >So: If you're using CHECK, follow it up with TAKETHIS. If you're using >IHAVE, leave CHECK out if it. If you still want to do a check-like >thing before the IHAVE for some reason, STAT might be a better bet. Right. When I added CHECK I should've changed IHAVE to TAKETHIS. I've done that now and it works fine. The code's simpler too! It makes sense now when I think of multiple peers offering the same article. Thanks Fluffy (and Nick) -- Mark Burkley -> mburkley@iol.ie PGP Public Key -> http://www.iol.ie/~mburkley/pgp.html News filter -> http://www.iol.ie/~mburkley/nfilter/nfilter.html
Re: *XPOST-SLACK* Re: All articles from @Home being cancelled in ars
Author: Nick Andrew
Date: Thu, 28 Jan 1999 00:00
Date: Thu, 28 Jan 1999 00:00
28 lines
1697 bytes
1697 bytes
In <36af0991@newsfeed.sexzilla.net> mburkley@iol.ie (Mark Burkley) writes: >--> check <001.0021@test.test> ><-- 238 <001.0021@test.test> >--> ihave <001.0021@test.test> ><-- 435 Duplicate >Weird, huh? I think that's what's called "advanced behaviour". Basically the server takes a hint via your "check" verb that article <001.0021@test.test> is about to come its way, and there's a fudge factor of maybe 30 seconds during which the server claims to already have the article, to prevent it being offered concurrently by other peers. Imagine having 10 or so full incoming feeds and each one presenting the same article ID within a second. Even though your server doesn't (yet) have the article, it wishes to receive it only once, from whichever peer offers it first. Nick. -- Zeta Internet SP4 Fax: +61-2-9233-6545 Voice: 9231-9400 G.P.O. Box 3400, Sydney NSW 1043 http://www.zeta.org.au/
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