Article View: news.software.nntp
Article #58124Re: comments on Jeremy's proposal
From: Jeremy
Date: Thu, 11 Apr 2002 19:11
Date: Thu, 11 Apr 2002 19:11
119 lines
6383 bytes
6383 bytes
Eric A. Hall <ehall@ehsco.com> wrote: > Regarding the binary single-part stuff: The clustering of parameters into > the Content-Type header is a creative approach to the problem, but it > won't fly with the MIME people. You should try hard to find another way to > do this. > > I'm not even really sure that it's necessary. If somebody sees a filename > they are interested in, the download agent can HEAD the articles to get > the metadata before the download starts. That would be prohibitively expensive, particularly in a single-part group like a picture group, when you're dealing with information you really want for every file in the group (like the MD5 and the size). There's just no way someone is going to HEAD an entire picture group. > If your objective here is to make it faster to gather summary data for > general purposes, define a command that actually achieves that. Mucking > with the MIME architecture is the wrong approach. You know this deep > inside already. I prefer to think of it as improving the MIME architecture for a situation where you can't have access to all of the message headers, and where each additional header used incurs additional expense -- a situation which MIME as it stands does not address, but a situtaion in which MIME is now being used. > I'd also like to see an actual definition of an actual Content-Size header > field or parameter. People have shied away from this because of the EOL > issues with text, but it might be that you can do something here as part > of this effort. Would such a thing really be that important? By the time you have that header, you have the message, or at least the full headers, so you at least already have the post-encoding size of the message. At that point, is the pre-encoding size that important that it's worth a new header? Maybe it is. > Multipart binaries: I don't see the merit of providing the filename > parameter to Content-Type: application/file-fragment. The ID provides the > unique identifier, and the Content-Disposition provides a filename. The merit is that you don't have the Content-Disposition header when you're browsing the group, and needing to have it makes the operation twice as expensive and adds another header that server operators have to optimize retrieval of. So, for the filename, the alternative to doing something that probably isn't going to happen and which probably would kill the whole idea in practice is to do something which lots of implementations are already doing right now. The benefit of filename over ID or MD5 is that it is human-readable, and provides a means of showing a user what is there. > Should the Number and Total parameters be combined? EG, "Element=3/27" to > identify that this is part 3 of a 27-part posting. I was wondering about that in another thread. The sequence information is the least important of the metadata, so it might be worthwhile to make it as small as possible. But, it might not... > The MIME people will jump on you about having a type parameter. I would > suggest that you consider doing away with this altogether. The way this is > typically handled is to define an entity container in the first message. There may not *be* a "first message". > Even though that model doesn't really work in Usenet for scanning for > specific types of files to download, you do need all of the parts for the > file to actually work, so having this stuff in the first message does > function as a model *after* you have downloaded everything. Well, no, part of the whole point is that you *don't* need all of the parts for the file to work. You can miss several posts in a series, and get the data from another post of the same file, which may be a partial post of only the data required. So unless you define "first message" as "any message where the byte-offset is zero", you may never see the first message because it may be missing. Relying upon the first message in a series for non-crucial metadata is fine, but I would be hesitant to "hide" the really important stuff there. > Another advantage to this method is that the Content-MD5 can apply to the > entire file and to each part, since they have their own headers. Right. Content-MD5 would apply only to the single message (which is how it is defined), allowing detection of corrupt posts. > There is also some possibilities here in the area of a new > Content-Disposition parameter of "Combine" (or whatever) which may provide > relief for some of these issues. It may be that the byte-range stuff > should go here, as this would generalize the problem somewhat. > > For example: > > [first part] > Content-Type: application/frag > Content-Transfer-Encoding: yEnc > Content-Disposition: combine; filename=blah.mpeg; range=0xfoo-0xbar > Content-MD5: <this-part> > Etcetera: headers > > Content-Type: video/mpeg > Content-Transfer-Encoding: binary > Content-MD5: <whole-file> > X-Content-Binary-Size: <whole-file size> [...] > That is the model that the MIME folks will want to see, if history is any > kind of indicator. But it won't work, and wouldn't even be worth pursuing in that form. Again, you are requring twice the expense (and more from the server implementors) to get the initial metadata, and you're hiding the full-file-md5 (the most important piece of metadata, which the client needs pre-download for all the files) within the message body, where it will be entirely useless. -- Jeremy | jeremy@exit109.com
Technical Details
Message-ID:
<1018552315.763878@ok-corral.gunslinger.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!saloon!newsbastardReferences:
<3CB535C6.138D3BFB@ehsco.com>Show Full Headers
Complete Article Headers
Message-ID: <1018552315.763878@ok-corral.gunslinger.net> Subject: Re: comments on Jeremy's proposal Date: Thu, 11 Apr 2002 19:11:55 +0000 From: Jeremy <jeremy@exit109.com> References: <3CB535C6.138D3BFB@ehsco.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!saloon!newsbastard Newsgroups: news.software.nntp Organization: There Is No Organization Lines: 118 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: trn 4.0-test76 (Apr 2, 2001) X-Meow: Meow