πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #85182

Re: 437 Duplicate on quit

#85182
From: Steve Crook
Date: Sat, 15 Sep 2012 10:11
33 lines
2458 bytes
On Fri, 14 Sep 2012 21:20:24 +0200, Julien Γ‰LIE wrote in
Message-Id: <k3001o$r9h$1@news.trigofacile.com>:

>>> Is the answer from innd or nnrpd with IHAVE?  Both of them can send it.
>> My program only uses IHAVE.
>
> Using innd or nnrpd?  (IHAVE commands can be answered by nnrpd if 
> configured in readers.conf.)
These are being handled by innd.

>> The program can potentially inject a
>> lot of articles in bursts.  It also attempts to inject them to multiple
>> peers so a lot of 437 Duplicate messages are to be expected.
>
> Does the program count the number of answers received, and when it does 
> not expect any other answer, it sends a QUIT command?
No, it handles each IHAVE in a sequential manner and expects a
response to each before progressing to the next. If the response is a
4xx, the nntplib raises an NNTPTemporaryError. If it's a 5xx,
NNTPPermanentError is raised. If no error is raised, the injection is
assumed successful.

The traceback happened because I wasn't trapping NNTPTemporaryError when
closing the connections with QUIT.

My code can be viewed here:
https://github.com/crooks/nymserv/blob/master/nymserv/nymserv
The nntp element begins at line 63.

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?
Technical Details
Message-ID: <slrnk58l3a.hs8.steve@snorky.mixmin.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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <slrnk51csv.cs1.steve@snorky.mixmin.net> <k2qqp7$9d1$1@news.trigofacile.com> <slrnk53dem.cs1.steve@snorky.mixmin.net> <k3001o$r9h$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnk58l3a.hs8.steve@snorky.mixmin.net>
Subject: Re: 437 Duplicate on quit
Date: Sat, 15 Sep 2012 10:11:54 +0000
From: Steve Crook <steve@mixmin.net>
References: <slrnk51csv.cs1.steve@snorky.mixmin.net> <k2qqp7$9d1$1@news.trigofacile.com> <slrnk53dem.cs1.steve@snorky.mixmin.net> <k3001o$r9h$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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 15 Sep 2012 10:11:54 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="14784"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-40 (Linux)
Lines: 32
X-Original-Bytes: 2169