Article View: news.software.nntp
Article #83530Re: [INN] POST instead of IHAVE?
From: Julien ÉLIE
Date: Thu, 14 Oct 2010 19:45
Date: Thu, 14 Oct 2010 19:45
59 lines
3451 bytes
3451 bytes
Hi Edmund,
>> Patch to prevent that connection:
>
>>--- pullnews.in (révision 9112)
>>+++ pullnews.in (copie de travail)
>>@@ -385,6 +390,10 @@
>
>> my $shash = $servers->{$server};
>
>>+ # No need to connect to the upstream server when there is no newsgroup
>>+ # to fetch. (The value 1 is for the "_order" key in the hash.)
>>+ next if keys(%{$shash}) == 1;
>>+
>> my $connectionAttempts = 0;
>> my $upstream;
>> {{
> [...]
>
> Unexpectedly pullnews will now post articles to the remote downstream
> host after I applied above patch.
I don't understand why.
Very weird.
> In compensation the superflous second connection is still made
Even weirder.
> BTW, pullnews aborts when a newsgroup in the config file does not
> exist on the upstream host. IMO it should just skip said group and
> continue with the next.
It would be a better behaviour, thanks!
--- pullnews.in (révision 9112)
+++ pullnews.in (copie de travail)
@@ -420,7 +429,10 @@
next if $group eq '_order';
next if (@groupsToGet && !grep ($_ eq $group, @groupsToGet));
- last if !crossFeedGroup ($upstream,$localcxn,$server,$group,$shash);
+ # crossFeedGroup returns 1 when the newsgroup is successfully
+ # pulled. No need to check the return value because we do not
+ # want to abort on the first error.
+ crossFeedGroup ($upstream,$localcxn,$server,$group,$shash);
last if defined $opt_S and time >= $^T+$opt_S;
sleep $opt_Z if defined $opt_Z;
}
--
Julien ÉLIE
« -- Le bureau des renseignements ?
-- Sais pas. Adressez-vous aux renseignements, ils vous renseigneront. » (Astérix)
Technical Details
Message-ID:
<i97mkc$qot$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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!ecngs!feeder.ecngs.de!feeder.news-service.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-39-181.w83-112.abo.wanadoo.fr!not-for-mailReferences:
<i834on$hg6$1@dk3uz.ampr.org> <i858pc$a9s$1@news.trigofacile.com> <i85q09$i4f$1@dk3uz.ampr.org> <i86rij$34j$1@news.trigofacile.com> <i8qtpl$g9i$1@dk3uz.ampr.org> <i8rtpv$iv1$1@news.trigofacile.com> <i8tebe$d42$1@dk3uz.ampr.org> <i900m5$6f9$1@news.trigofacile.com> <i977c2$6ui$1@dk3uz.ampr.org>Show Full Headers
Complete Article Headers
Message-ID: <i97mkc$qot$1@news.trigofacile.com> Subject: Re: [INN] POST instead of IHAVE? Date: Thu, 14 Oct 2010 21:45:15 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <i834on$hg6$1@dk3uz.ampr.org> <i858pc$a9s$1@news.trigofacile.com> <i85q09$i4f$1@dk3uz.ampr.org> <i86rij$34j$1@news.trigofacile.com> <i8qtpl$g9i$1@dk3uz.ampr.org> <i8rtpv$iv1$1@news.trigofacile.com> <i8tebe$d42$1@dk3uz.ampr.org> <i900m5$6f9$1@news.trigofacile.com> <i977c2$6ui$1@dk3uz.ampr.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!ecngs!feeder.ecngs.de!feeder.news-service.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-39-181.w83-112.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 59 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Date: Thu, 14 Oct 2010 19:45:17 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-151-1-39-181.w83-112.abo.wanadoo.fr:83.112.150.181"; logging-data="27421"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <i977c2$6ui$1@dk3uz.ampr.org> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263 X-Original-Bytes: 3205