Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Somebody's terminal is dropping bits. I found a pile of them over in the corner.


computers / news.software.nntp / Re: Generic 403 NNTP response code for TAKETHIS

SubjectAuthor
o Re: Generic 403 NNTP response code for TAKETHISJulien ÉLIE

1
Re: Generic 403 NNTP response code for TAKETHIS

<tp7ks1$9g9q$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1336&group=news.software.nntp#1336

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: Generic 403 NNTP response code for TAKETHIS
Date: Fri, 6 Jan 2023 00:01:21 +0100
Organization: Groupes francophones par TrigoFACILE
Message-ID: <tp7ks1$9g9q$1@news.trigofacile.com>
References: <tn8ak2$2pnad$3@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 5 Jan 2023 23:01:21 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105";
logging-data="311610"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.6.1
Cancel-Lock: sha1:D+vq70qqeAOQENO7QLQtYEXjJCA= sha256:KnlO4xWGBPh3lNGlNGAMmW9Xyfzmhi/xIkyImfhGjbo=
sha1:nRfzHBQ6XyUmdaRrA+VTg3Cso+Y= sha256:cJ1YTwjLY/hFciLmbrr9xMp6IaccU/xCMQjEXI4Risg=
In-Reply-To: <tn8ak2$2pnad$3@news.trigofacile.com>
 by: Julien ÉLIE - Thu, 5 Jan 2023 23:01 UTC

Responding to myself:

> FWIW, one of the case that can trigger the "can't store article" in
> innd is when INT_MAX is reached.
I do not manage to reproduce it on my current VPS...
A few years ago, with an older hardware and OS, I had "436 can't store
article".

Now, on my set up, INN is happily accepting articles > 2^31. No storage
error, and article numbers > 2^31 are present in NNTP responses.

LIST ACTIVE returns large article numbers for all the storage methods:

trigofacile.test.maxartnum.cnfs 2147483649 2147483646 y
trigofacile.test.maxartnum.timecaf 2147483648 2147483646 y
trigofacile.test.maxartnum.timehash 2147483651 2147483646 y
trigofacile.test.maxartnum.trash 2147483648 2147483646 y
trigofacile.test.maxartnum.tradspool 2147483650 2147483646 y

Articles are stored in disk, and accessible via ARTICLE <mid> requests
(not by article numbers though).

The overall behaviour depends on the overview method used.

With tradindexed, article numbers > 2^31 are not returned in LISTGROUP,
OVER and like commands because they are not present in the index
("cannot write index record for 18446744071562067968" - seems like
article number wraps to -1 and then is written 2^64 as unsigned long in
the log).

buffindexed returns the articles but not with the right numbers:

LISTGROUP
211 3 2147483646 18446744071562067969 trigofacile.test.maxartnum.timehash
2147483647
2147483648
18446744071562067969
..

though the last one correctly has:

Xref: news.trigofacile.com trigofacile.test.maxartnum.timehash:2147483649

ovdb returns the right article numbers except for the reported high
water mark:

LISTGROUP
211 3 2147483646 18446744071562067969 trigofacile.test.maxartnum.timehash
2147483647
2147483648
2147483649
..

but OVER responses report negative article numbers starting from -2^31:
-2147483648, -2147483647, etc.

ovsqlite has a different and strange behaviour as the low and high water
marks are inverted, and article numbers are also returned in reverse order:

LISTGROUP
211 4 18446744071562067968 2147483647 trigofacile.test.maxartnum.timehash
18446744071562067968
18446744071562067969
18446744071562067970
2147483647
..

It was just a quick testing of overview methods. (Expiry and other
programs not tested.)
So there's a bit of work and testing afterwards to make INN compatible
with 2^64 article numbers. At least the good news is that the storage
methods cope with a bit more than 2^31 (maybe 2^32 and beyond) but there
will be a problem with numbers > 10^10 because of the format of the
active file.

For the time being, I'll have a look to prevent postings of new articles
in newsgroups which have reached 2^31-1 articles, with the correct
rejection code (and not deferral).
It will fix the "can't store article" error I once had (which certainly
still happens for some people), and otherwise these wrong article
numbers returned if the article is accepted.

--
Julien ÉLIE

« On appelle ça une insula. C'est une maison où les gens habitent les
uns au-dessus des autres… » (Astérix)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor