Article View: news.software.nntp
Article #80439Re: Questions about datastream answers (especially to TAKETHIS)
From: Russ Allbery
Date: Mon, 23 Mar 2009 01:48
Date: Mon, 23 Mar 2009 01:48
42 lines
3448 bytes
3448 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes:
> More a hack than anything else but if we have received "CAPABILITIES"
> previously in the session, we send "501 the whole byte string"
> (RFC-compliant); otherwise, "439 the whole byte string" (not
> RFC-compliant).
> But well, it is not very proper...
Plus, the text after 501 is not specified by the standard, so there still
isn't any clue in the standard that the client is supposed to use that to
figure out what message the 501 refers to. (We should reply in order and
the remote site should rely on that, but I don't think current
implementations do that.)
> In both cases, RFC 4644 needs an addendum to say:
> * either that generic responses will include that byte string (which can
> be a well-formed message-ID for instance after 480, 483, etc.);
> * or that 438/439 is always sent in such cases and that their answer is
> always the whole byte string.
>
> I would of course prefer the first one.
Or that clients must remember the order of their CHECK or TAKETHIS
commands and use that to match up the 501 response. I believe that
streaming still requires that the replies match the order of commands.
Ideally, we should modify innfeed to support that as well. I'm not sure
how much work that would be, though. (Potentially quite a lot.)
> And we still do not handle the case of a "whole byte string" whose size
> is greater than the maximum allowed (for instance 600 bytes -> we must
> truncate it after 501 or do something else).
Well, at that point the client is breaking the NNTP protocol badly enough
that I'm not sure there's much we can do.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87y6uxnh4u.fsf@windlord.stanford.edu>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.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!204.127.204.223.MISMATCH!wns13feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!headwall.stanford.edu!news.stanford.edu!not-for-mailReferences:
<gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$1@news.trigofacile.com> <87wsajk9lu.fsf@windlord.stanford.edu> <gq273p$s8o$1@news.trigofacile.com> <87k56iip3i.fsf@windlord.stanford.edu> <gq5813$nhj$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <87y6uxnh4u.fsf@windlord.stanford.edu> Subject: Re: Questions about datastream answers (especially to TAKETHIS) Date: Sun, 22 Mar 2009 18:48:49 -0700 From: Russ Allbery <rra@stanford.edu> References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$1@news.trigofacile.com> <87wsajk9lu.fsf@windlord.stanford.edu> <gq273p$s8o$1@news.trigofacile.com> <87k56iip3i.fsf@windlord.stanford.edu> <gq5813$nhj$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.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!204.127.204.223.MISMATCH!wns13feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!headwall.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 42 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.stanford.edu 1237772929 26442 171.67.225.134 (23 Mar 2009 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:6gX/4fdx8CdqaeV/5LAN/gIHmqY= X-Original-Bytes: 3187