🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #201605

Re: [Xnews] Downloading incomplete binaries

#201605
From: Mark Cramer
Date: Sun, 08 Jul 2007 20:48
54 lines
3706 bytes
Herb Torres <herbtorres@hotmail.com> wrote in
news:Xns9967A10D36FF5herbtorreshotmailcom@216.196.97.131: 

> Shez <see.sig@nospam.demon.co.uk.invalid> wrote in news:5kuZVgIwv0A
> $EwgB@xerez.nospam.co.uk:
> 
>> I need to download some incomplete multipart binary posts which will
>> then be repaired with PAR2, which can fix partial files. The question
>> is, what's the best way of doing this with Xnews? Normally when
>> downloading binaries I just hit F4 (decode to file), but I'm wondering
>> if this will have problems when there are parts missing in the middle -
>> what happens when Xnews hits a gap in the thread? 
> 
>          I was wondering along the same lines, or hoping that Luu Tran
>          could 
> make a couple of changes to the the way it handles binaries. 
> 
 
I download partial binaries for repair with XNews all the time, have you 
actually tried it? It seems to work fine, PROVIDED the Par2 block size 
matches the post size! 

If a file has (say) 6 blocks, and only parts 1-3, 5 and 6 are available, 
XNews puts all five in a file and then Par2 can do recovery if you have 
recovery blocks (Actually I use Quickpar which handles this fine)

If further blocks in a Par'd rar file become available later, XNews save the 
extra blocks for File1.rar as File1_0.rar and Quickpar at least finds and 
uses these fine.

There IS a bug in XNews' incomplete binary name handling though. If a post is 
say File.part01.rar and file.part02.rar, both with 3 posts and you queue the 
first post of part01 and the first post of part02 and decode, both blocks end 
up in part01.rar, rather than 1 in part01 and 1 in part 02.  Quickpar can 
repair from this situation most of the time, but occasionally gets lost and 
can't find blocks that have been downloaded.

Of course if the Par2 block size doesn't match the post size (so par2 blocks 
aren't split across posts), the whole thing gets screwed up, and you often 
can't get many blocks unless you have sequential posts.  This often shows up 
when downloading broken recovery files. If you have four recovery blocks 
spread across 5 files (as often happens with recovery blocks, because of the 
Par2 index being included in the file) and you have parts 1,2,4 and 5, you'll 
only have 2 recovery blocks. You get the Par2 index from the start of part1, 
the first block from the rest of Part1 and the start of part2 and 1 block 
from parts 4+5.

I haven't genned many Par2 files, but it seems it would be better for Par2 to 
put hte index AFTER the recovery blocks, rather than before, to keep blocks 
aligned with posts.



Technical Details
Message-ID: <Xns9967DDA178B5Cmarkcrameryahoocom@62.253.170.163>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe7-gui.ntli.net.POSTED!53ab2750!not-for-mail
References: <5kuZVgIwv0A$EwgB@xerez.nospam.co.uk> <Xns9967A10D36FF5herbtorreshotmailcom@216.196.97.131>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9967DDA178B5Cmarkcrameryahoocom@62.253.170.163>
Subject: Re: [Xnews] Downloading incomplete binaries
Date: Sun, 08 Jul 2007 20:48:05 GMT
From: Mark Cramer <no@public.email>
References: <5kuZVgIwv0A$EwgB@xerez.nospam.co.uk> <Xns9967A10D36FF5herbtorreshotmailcom@216.196.97.131>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe7-gui.ntli.net.POSTED!53ab2750!not-for-mail
Newsgroups: news.software.readers
Organization: Your Company
User-Agent: Xnews/5.04.25
Lines: 54
NNTP-Posting-Host: 82.23.129.214
X-Trace: newsfe7-gui.ntli.net 1183927685 82.23.129.214 (Sun,
NNTP-Posting-Date: Sun, 08 Jul 2007 21:48:05 BST