Article View: news.software.nntp
Article #88002Re: LIST ACTIVE low & high water limits and wraparound
From: news
Date: Fri, 26 Jul 2019 01:27
Date: Fri, 26 Jul 2019 01:27
32 lines
2444 bytes
2444 bytes
Michael <michael.baeuerle@gmx.net> wrote: > > To avoid a protocol VERSION 3, maybe as extension: > If a server advertises something to define like BIGNUM via CAPABILITIES, > a client that can handle large article numbers can negotiate the limit > with a corresponding command BIGNUM (client limit as parameter). > The server will then clamp to this limit, or its own limit, whichever is > smaller. My own opinion is that is more complicated than it needs to be. My own opinion is, even though it does not strictly follow the specification, to just allow 63-bit numbers, but to not use numbers larger than 31-bits until it is necessary to do so. (If you never reach the 31-bit limit, then there is no need to do anything.) My solution may cause problems with existing clients, but so will your solution or any other possibility, anyways, if there are more articles than there are expected to be. > The NNTP protocol driver in my client is written in C90 and uses > "unsigned long int" as data type. It would therefore be possible to > offer ULONG_MAX for negotiation. My own client and server program both use SQLite, so the "sqlite3_int64" type is used to store the article numbers. The server assigns article numbers consecutively, so until the 31-bit limit is reached, it is not expected to cause a problem. -- Note: I am not always able to read/post messages during Monday-Friday.
Technical Details
Message-ID:
<1564102436.bystand@zzo38computer.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<5cd011d5$0$15174$426a74cc@news.free.fr> <1563663361.bystand@zzo38computer.org> <qh20hr$b5u$1@dont-email.me> <AABdNI5LKHAAAAtv.A1.flnews@Server4.micha.freeshell.org> <qh5vd1$1pv$1@dont-email.me> <AABdN3TTtmIAAAnN.A1.flnews@Server4.micha.freeshell.org>Show Full Headers
Complete Article Headers
Message-ID: <1564102436.bystand@zzo38computer.org> Subject: Re: LIST ACTIVE low & high water limits and wraparound Date: Fri, 26 Jul 2019 01:27:38 +0000 From: news@zzo38computer.org.invalid References: <5cd011d5$0$15174$426a74cc@news.free.fr> <1563663361.bystand@zzo38computer.org> <qh20hr$b5u$1@dont-email.me> <AABdNI5LKHAAAAtv.A1.flnews@Server4.micha.freeshell.org> <qh5vd1$1pv$1@dont-email.me> <AABdN3TTtmIAAAnN.A1.flnews@Server4.micha.freeshell.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: Aioe.org NNTP Server Lines: 30 NNTP-Posting-Host: U158MBNsLt97drbZ2zludw.user.gioia.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: bystand/0.4.0 X-Notice: Filtered by postfilter v. 0.9.2 X-Received-Bytes: 2599 X-Received-Body-CRC: 330883043