🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89508

Re: INN the only software?

#89508
From: Julien ÉLIE
Date: Thu, 04 Aug 2022 18:57
58 lines
3775 bytes
Hi Jesse,

> It could be related to the server on the other end (pulling from a commercial
> entity). The one situation that happened a lot, especially with large groups,
> was at some point in the session pullnews would just start spewing x's to the
> terminal in a loop and not stop until killed. It never gave me an error.
> Killing and resuming always seemed to work.

Interesting.
I see in the code that if pullnews receives an unexpected response code 
when asking for article #i, it will print "x" and try #(i+1).

I've tested a timeout, as you suggested, and I confirm "pullnews -d2" 
(debug mode) prints "x" and goes on...

x
DEBUGGING 1 421 [Net::NNTP] Connection closed
x
DEBUGGING 2 421 [Net::NNTP] Connection closed
x
DEBUGGING 3 421 [Net::NNTP] Connection closed
[...]

This is a bug.
I would just suggest in that case to verify whether the connection were 
still active by sending a DATE command through Net::NNTP::date().  If 
there is no answer, then we can consider the connection is no longer 
here, and we just bail out.
And if there is an answer to DATE, hmmm, we can still be in a deadloop 
with a repeated unknown error.  Maybe we could also bail out after 10 
attempts for instance?

Unfortunately, I do not see how to check that the connection is no 
longer active with the Net::NNTP module pullnews uses :-/
It seems to just answer "undef" to each command, but it could be for 
another reason.  That's why I suggest to ask for the DATE.



> I did a few comparisons with pullnews and suck, even when using
> the -O flag with pullnews, suck is a lot faster in the overall runtime of
> pulling an entire group (tested the same group on empty servers). Internally I
> don't know how the NNTP operations compare, but pullnews wasn't as efficient
> as suck's method of building the list of articles, deduping, grabbing all
> articles, and posting as serial operations led to getting the job done faster.

I've just had a glance at suck source code.  It directly runs the native 
C function provided by INN (dbzexists) on the history file.  No wonder 
it is more efficient than pullnews which just runs an NNTP command 
(STAT) on the local news server...

Thanks again for your valuable bug report!
Any other issue you remember with pullnews?

-- 
Julien ÉLIE

« Ibi etsi uis te non esse sed es ibi. »
Technical Details
Message-ID: <tch4q1$31vln$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <tc0gu1$1n2a$1@gioia.aioe.org> <tcg4ng$3fr$1@rasp.pasdenom.info> <2669878846.7740dac3@dont-email.me> <tcgq5i$31omo$1@news.trigofacile.com> <3104502063.e912a020@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <tch4q1$31vln$1@news.trigofacile.com>
Subject: Re: INN the only software?
Date: Thu, 4 Aug 2022 20:57:05 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <tc0gu1$1n2a$1@gioia.aioe.org> <tcg4ng$3fr$1@rasp.pasdenom.info> <2669878846.7740dac3@dont-email.me> <tcgq5i$31omo$1@news.trigofacile.com> <3104502063.e912a020@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 4 Aug 2022 18:57:05 -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="3210935"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0
Cancel-Lock: sha1:IgixPuoFtqBXkqLeCBa8s9AlWgI= sha256:oaoLke7xwQzqUAhFIJvjC9pCp0gz9nEC6n3ZDHMsrYY= sha1:WdSnb9Z5aYlYRxTW4lnpR83dumU= sha256:yJ1Unp7L18iNJsgdBBsolFUA4d/QlW1UF+kZQDF+S5Y=
In-Reply-To: <3104502063.e912a020@dont-email.me>