Article View: news.software.nntp
Article #80543Re: Questions about datastream answers (especially to TAKETHIS)
From: Curt Welch
Date: Fri, 10 Apr 2009 20:14
Date: Fri, 10 Apr 2009 20:14
106 lines
8016 bytes
8016 bytes
=?ISO-8859-15?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> wrote: > > You can't assume you are feeding a server with redundant feeds. Feeds > > must work correctly even if it's only a single feed. So the sending > > server has to error on the side of caution and not drop articles > > whenever something unexpected happens. > > Well, 501 is not unexpected. It can be returned in response to TAKETHIS! > For instance if the message-ID is too long or, as you took that example, > if it contains a space. > > > So there's just no way given the current state of things, to start > > ending 5xx result codes to mean "reject article because of bad error". > > However, news servers should start *understanding* 5xx result codes. Well, I think this is just one of those cases where the RFC doesn't match what's actually done in the real world. If none of the servers can deal correctly with 5xx codes, then you have to question who's fault this mismatch between the RFC and reality is. Are the servers wrong, or is the RFC wrong? You might be the first person in the entire history of Usenet to actually try to write code from the RFC because it's only been very recently that there was an RFC that was detailed and complete enough to do that - all the old RFCs were far to vague and inconsistent (and in some cases just dead wrong) in too many important areas to do that. The RFCs were at best starting guides, with all the real work done by testing the code in the wild and adjusting until it worked (and by reading INN source code, etc). When there was a conflict between the RFC, and INN source, the INN source was considered the authority, not the RFC. So is this maybe something we should just consider the RFC to be wrong about? News feeds are very tricky things - they are by far the most complex and tricky part of Usenet to get right. The problem is that both sides are automated in a news feed and must (as best as is possible) keep working when unsupervised. Not to mention the sheer complexity of making streaming feeds work well There are two major ways to error on news feeds - either the feed drops articles, but otherwise keeps working, or it hangs - which means the feed is down until one (or worse both) admins takes the time to research and fix the problem. Both errors are very bad. Admins don't have the time to keep hand holding feeds that keep breaking, and Usenet doesn't work if articles get dropped randomly for poor reasons. Will trying to add support for 5xx codes in a feed make things better, or worse? The problem, is that when the feed is working correctly, you will normally never see a 5xx response, so testing your feed code to make sure you implemented the response to a 5xx correctly will be difficult. It will be a special case condition that may never be tested, when the server is written, or changes are made - unless the developer has a very advanced code test environment that is used after every change to the server. If we design the protocol, and write the RFC, so that the only codes used, are ones that are expected to be very common in normal usage, then it's far more likely that the code is working correctly, if you simply run it for a real feed - without having to create a complex test driver. The type of problem that could show up, is an edge case where one brand server accepts a given format Message-id, and others reject it with 501. Everything could be working fine for years, simply because no one ever tried to create an article with one of the special edge-case ids. But then, one day, someone sends one out, and it could shut down large parts of Usenet if the result is feeds that block while they keep trying over and over to send the weird article and having to drop and restart the feed every time it gets that 501 error back. So the idea here, is if you limit the protocol design to only use a very small set of response codes - and most important, all the response codes normally show up very frequently in real feeds, then the odds of a future melt-down of Usenet is reduced, because if feed code can last a week without propblems, it can probably last 10 years. My gut at the moment (though my mind on these things can change hourly when I think of new issues), is that expecting servers to recognize and respond correctly to a rare 501 to mean "reject" would cause more problems in the long run, rather than less. Ah, I think I just thought up another way 501 for "reject" might cause an issue. One issue that happens in some servers, is that they send articles from disk without checking for proper dot protocol. If their disk data gets corrupted (disk errors/server crash leaving disk data corrupted), they can sometimes send invalid data - such as a CR LF DOT CR LF in the middle of the article without realizing it happened. The receiving system then starts to read some raw article data as if they were commands, and then starts to do things like send 5xx codes back as errors. When something like that happens, you don't want the sending server to just start dropping all the articles from the queue. You want the queue to hang, until the admin on the sending side fixes his problem. If it takes any of the 5xx responses to mean reject, then the entire feed could just get flushed or dropped causing some very large blocks of articles to be lost and making it very hard to re-feed the lost articles since there is probably no good documentation on what was lost. It just seems far safer to me to allow the sending system to see all 5xx codes to mean "something is really messed up - stop trying to send and try again later" instead of trying to make 501 mean reject while leaving all other 5xx codes to mean stop sending and try again later. Even though this might make the RFC seem kludge, (not being able to specify 501 for _all_ commands) I suspect it makes the protocol better. It seems to be a complex question no matter how you look at it. :) -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20090410161411.260$qR@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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!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> <20090409151121.399$6P@newsreader.com> <grmnm5$qt7$1@news.trigofacile.com> <20090410120813.401$Y2@newsreader.com> <grnvqe$vta$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <20090410161411.260$qR@newsreader.com>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Fri, 10 Apr 2009 20:14:08 +0000
From: curt@kcwc.com (Curt Welch)
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> <20090409151121.399$6P@newsreader.com> <grmnm5$qt7$1@news.trigofacile.com> <20090410120813.401$Y2@newsreader.com> <grnvqe$vta$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!nntp.giganews.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com uw_5om.l8KZgJ6AJCR3X=jOEH5wtMeGgpuEzfw8/8Ro42jfx
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: 106
NNTP-Posting-Host: d6c71ace.nr5-q1.newsreader.com
X-Trace: DXC=84C;
YgkC=c2e^<YE2`Y8W0bgZaH`e<A[9Z?:i9<JJBS>]:<AZdLI?165^Ah^J`E7[:^>ejHB]gAV9jRbQAheSh54
X-Complaints-To: abuse@newsreader.com