🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Martin Burmester Sat, 26 Jul 2025 11:48
Cancel-Lock and delayed feed
#92330
Author: Martin Burmester
Date: Sat, 26 Jul 2025 11:48
11 lines
1259 bytes
Hi,

when reading[1] I wondered, how does the Cancel-Lock mechanism work when 
the cancel is received before the article to be canceled? Wouldnt the 
processing of cancels have to be delayed until the article has been 
transferred and seen, defeating the purpose of the delayed feed?

Cheers,
Martin

[1] https://www.eyrie.org/~eagle/software/inn/docs/delayer.html
Re: Cancel-Lock and delayed feed
#92337
Author: Nomen Nescio
Date: Sat, 26 Jul 2025 15:46
8 lines
1068 bytes
> when reading[1] I wondered, how does the Cancel-Lock mechanism work when 
> the cancel is received before the article to be canceled?

It doesn't work if the cancel comes in before the article.

> defeating the purpose of the delayed feed?

Yes. Don't use it if you want to verify cancel locks.
Re: Cancel-Lock and delayed feed
#92332
Author: Adam H. Kerman
Date: Sat, 26 Jul 2025 16:00
16 lines
1768 bytes
Martin Burmester <martin@burmester.org> wrote:

>Hi,

>when reading[1] I wondered, how does the Cancel-Lock mechanism work when 
>the cancel is received before the article to be canceled? Wouldnt the 
>processing of cancels have to be delayed until the article has been 
>transferred and seen, defeating the purpose of the delayed feed?

>[1] https://www.eyrie.org/~eagle/software/inn/docs/delayer.html

I don't see how there's anything to cancel if the article hasn't yet
been fed. In that case, isn't there some mechanism to run it against the
article before feeding? This is one instance in which cancels would
actually accomplish something useful as no user would have yet read the
article.
Re: Cancel-Lock and delayed feed
#92333
Author: Ray Banana
Date: Sat, 26 Jul 2025 16:32
27 lines
2230 bytes
Thus spake "Adam H. Kerman" <ahk@chinet.com>
 
> I don't see how there's anything to cancel if the article hasn't yet
> been fed. In that case, isn't there some mechanism to run it against the
> article before feeding? This is one instance in which cancels would
> actually accomplish something useful as no user would have yet read the
> article.

That's not the problem:

grephistory '<test-6666@killefitz.org>'
grephistory: not found
[news@feeder ~]$ ctlinnd cancel '<test-6666@killefitz.org>'
Ok
[news@feeder ~]$ grephistory '<test-6666@killefitz.org>'
/dev/null

When the article with this M-ID arrives on the server,
it will be rejected as a duplicate.

The problem is that you have a key but no lock to open.
so to speak. The lock is contained in the article that is
meant to be cancelled.

-- 
Пу́тін — хуйло́
https://eternal-september.org
Re: Cancel-Lock and delayed feed
#92335
Author: Martin Burmester
Date: Mon, 28 Jul 2025 18:51
33 lines
2175 bytes
Hello

Am 26.07.2025 um 18:32 schrieb Ray Banana:
> Thus spake "Adam H. Kerman" <ahk@chinet.com>
>   
>> I don't see how there's anything to cancel if the article hasn't yet
>> been fed. In that case, isn't there some mechanism to run it against the
>> article before feeding? This is one instance in which cancels would
>> actually accomplish something useful as no user would have yet read the
>> article.
> 
> That's not the problem:
> 
> grephistory '<test-6666@killefitz.org>'
> grephistory: not found
> [news@feeder ~]$ ctlinnd cancel '<test-6666@killefitz.org>'
> Ok
> [news@feeder ~]$ grephistory '<test-6666@killefitz.org>'
> /dev/null
> 
> When the article with this M-ID arrives on the server,
> it will be rejected as a duplicate.
> 
> The problem is that you have a key but no lock to open.
> so to speak. The lock is contained in the article that is
> meant to be cancelled.

Exactly. So is this a real problem or should one just not use delayed 
feeds when one cares about Cancel-Locks? I mean, its not impossible that 
the cancel arrives before the article.

Cheers
	Martin
Re: Cancel-Lock and delayed feed
#92339
Author: Julien ÉLIE
Date: Fri, 01 Aug 2025 14:26
29 lines
2369 bytes
Hi Martin,

> So should one just not use delayed 
> feeds when one cares about Cancel-Locks? I mean, its not impossible that 
> the cancel arrives before the article.

Indeed, that's a good point.  I had not Cancel-Lock in mind when 
suggesting the following example in the delayer manual page:

     news.uu.net/uunet\
         :!*,control,control.*,news.lists.filters\
         :Tm:innfeed!

     news.uu.net-delayed/uunet\
         :*,!control,!control.*,@news.lists.filters\
         :Tm:innfeed-delayed!

I agree that control.cancel should not be delayed by an administrator 
who cares about Cancel-Locks (in which case he has very probably also 
disabled the process of unauthenticated cancels).  I will update the 
documentation to mention an example with control.cancel not delayed.

Thanks for your message about that problem!

-- 
Julien ÉLIE

« Sois sage, ô ma douleur, et tiens-toi plus tranquille. » (Charles
   Baudelaire)
Re: Cancel-Lock and delayed feed
#92887
Author: Julien ÉLIE
Date: Sun, 21 Jun 2026 21:22
19 lines
2011 bytes
Hi Martin,

> So is this a real problem or should one just not use delayed 
> feeds when one cares about Cancel-Locks? I mean, its not impossible that 
> the cancel arrives before the article.

Yes, the cancels need being delayed.  I've just updated the 
documentation (will be shipped with INN 2.7.4):
  
https://github.com/InterNetNews/inn/commit/68e5e624e30fa7d7218cc923988b8acd71dbd147

Thanks again for your message last year!  I had noted to take it into 
account for the next release, so now is time to treat it.

-- 
Julien ÉLIE

« Maior e longinquo reuerentia. » (Tacite)
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