Article View: news.software.nntp
Article #61399Re: Did someone's peering break?
From: Curt Welch
Date: Sun, 13 Oct 2002 06:08
Date: Sun, 13 Oct 2002 06:08
81 lines
4555 bytes
4555 bytes
Sven Paulus <W1986@inka.de> wrote:
> Andrew - Supernews <andrew+nonews@supernews.com> wrote:
> > one snag with this is that the Newsgroups header can be longer than the
> > limit on NNTP command size.
>
> Yes, you're right. I cancelled my article anyway, because I saw that Curt
> Welch already proposed something similiar in the "[xBin]" thread (XCHECK,
> which of course also suffers from the problem you mention).
>
> Hm, something like ...
>
> |> XCHECK <message@id>
> |> Newsgroups: gro.up1,group.2
> |> Bytes: 3214
> |> .
> |> XCHECK <message2@id>
> |> Newsgroups: foo.bar1, foo2.bar
> |> Bytes: 3113
> |> .
> |< 438 <message@id>
> |< 238 <message2@id>
A bit odd but it could work. I'd still leave bytes on the line after
the message-id because it would waste less bytes that way and I
think would be one of the most common things people would want. And
if they didn't want anything besides byte, you would be forced to
send an empty block after the XCHECK, and that would be weird.
> ... should be possible. If each block could be written with writev() it
> is almost as efficient like sending everything on a single line.
You don't need to use writev().
write("XCHECK <mid>\r\nNewsgroups: x.y.z\r\nBytes: 3113\r\n.\r\n")
is the same as:
write("XCHECK <mid> Newsgroups:x.y.z Bytes:3113\r\n")
Or you could just screw the NNTP line length limit and require any server
that supports XCHECK to also support a longer command line.
Or you could do something much more general, powerful, and clean:
< XCHECK <message-id>
> 244 <message-id> bytes newsgroups
< TAKEHEAD <message-id>
< Bytes: 873434
< Newsgroups: whatever.you.want,which.goes.on.forever
< .
> 238 <message-id>
So servers that can support this use XHCECK instead of CHECK as a way
of telling the receiving side of the feed it can use this new feature.
The receiving side can send the normal response code to the XCHECK, to
accept the full article or reject it, but there would be a new code (I made
up 244 above) which is a way the receiving side could ask for more
information. It would send keywords for the headers it wants to see for
the article and the sending side would respond with a TAKEHEAD command
which only included the data asked for.
I guess the receiving side could even respond to the TAKEHEAD with yet
another request for more header information. But the normal would be to
respond with a normal check code for take or reject or try again later.
The advantage of the above system is that you would only have to ask for
the header data the first time you saw the message. When it's offered by
your other peers, you can just reject it and they never had to waset
bandwidth sending the extra data.
And the receiving side of course gets to pick what headers it wants to look
at without having to ask their peer to change the configuration.
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20021013020852.845$Fm@newsreader.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!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!grr!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<anssll$n3$1@lust.ihug.co.nz> <yly997e49y.fsf@windlord.stanford.edu> <1034197713.326176@ok-corral.gunslinger.net> <yln0pncnex.fsf@windlord.stanford.edu> <1034200519.445767@ok-corral.gunslinger.net> <ylu1jvb6x5.fsf@windlord.stanford.edu> <00O000000O@news.radio.cz> <ylwuony3qp.fsf@windlord.stanford.edu> <20021012182340.307$tH@newsreader.com> <yl4rbr70km.fsf@windlord.stanford.edu> <aoas5r$jid$1@sapa.inka.de> <slrnaqhtj8.ci3.andrew+nonews@trinity.supernews.net> <aoatm3$jms$1@sapa.inka.de>Show Full Headers
Complete Article Headers
Message-ID: <20021013020852.845$Fm@newsreader.com>
Subject: Re: Did someone's peering break?
Date: Sun, 13 Oct 2002 06:08:52 +0000
From: curt@kcwc.com (Curt Welch)
References: <anssll$n3$1@lust.ihug.co.nz> <yly997e49y.fsf@windlord.stanford.edu> <1034197713.326176@ok-corral.gunslinger.net> <yln0pncnex.fsf@windlord.stanford.edu> <1034200519.445767@ok-corral.gunslinger.net> <ylu1jvb6x5.fsf@windlord.stanford.edu> <00O000000O@news.radio.cz> <ylwuony3qp.fsf@windlord.stanford.edu> <20021012182340.307$tH@newsreader.com> <yl4rbr70km.fsf@windlord.stanford.edu> <aoas5r$jid$1@sapa.inka.de> <slrnaqhtj8.ci3.andrew+nonews@trinity.supernews.net> <aoatm3$jms$1@sapa.inka.de>
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!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!grr!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 0OqBJ,V3qqu_OyUgM2WjxaZ19HJb4zedluLiFWM,b/R+MI
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 80