🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79299

Re: 64-bit highmarks in active files

#79299
From: Julien ÉLIE
Date: Tue, 19 Aug 2008 17:13
38 lines
2486 bytes
Hi Xavier,

> I don't want to be pessimistic, but typically the C-function sscanf() will successfully return (unsigned int) 2^32 after 2^32 (ie. 
> not a % 2^32 number, but the fixed UINT_MAX one)
>
> $ for i in $(seq 1 10) ; do ./fubar $[2**32-5+$i] ; done
> i == 4294967292
> i == 4294967293
> i == 4294967294
> i == 4294967295
> i == 4294967295
> i == 4294967295
> i == 4294967295
> i == 4294967295
> i == 4294967295
> i == 4294967295

That explains why INN uses 2147483647 instead of 5000000000
if I feed it with xrefslave set to true an article whose Xref:
header announces 5000000000.

It takes INT_MAX (the signed one).
Afterwards, no article is accepted:

    news innd: tradspool: could not open [...]/2147483647 File exists
    news innd: SERVER cant store article: File exists



It is a great idea, as Jeff wrote, to use CAPABILITIES for such
an extension.

-- 
Julien ÉLIE

« Hier nous étions au bord du gouffre, aujourd'hui nous avons
  fait un grand pas en avant. » 
Technical Details
Message-ID: <g8euvu$vfv$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!talisker.lacave.net!lacave.net!news.trigofacile.com!not-for-mail
References: <g8dlk2$f2u$1@news.trigofacile.com> <87wsid4lbj.fsf@windlord.stanford.edu> <g8dnd1$h15$1@news.trigofacile.com> <20080819115615.443$wk@newsreader.com> <g8erpq$bsk$1@news.httrack.net>

Show Full Headers
Complete Article Headers
Message-ID: <g8euvu$vfv$1@news.trigofacile.com>
Subject: Re: 64-bit highmarks in active files
Date: Tue, 19 Aug 2008 19:13:51 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <g8dlk2$f2u$1@news.trigofacile.com> <87wsid4lbj.fsf@windlord.stanford.edu> <g8dnd1$h15$1@news.trigofacile.com> <20080819115615.443$wk@newsreader.com> <g8erpq$bsk$1@news.httrack.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!talisker.lacave.net!lacave.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 38
NNTP-Posting-Host: aaubervilliers-151-1-21-55.w83-114.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=response
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1219166014 32255 83.114.140.55 (19 Aug 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Tue, 19 Aug 2008 17:13:34 +0000 (UTC)
In-Reply-To: <g8erpq$bsk$1@news.httrack.net>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049