Article View: news.software.nntp
Article #37541Re: nntp client - method question
From: Russ Allbery
Date: Tue, 18 May 1999 00:00
Date: Tue, 18 May 1999 00:00
51 lines
2767 bytes
2767 bytes
Greg Andrews <gerg@netcom.com> writes: > But Russ, he didn't suggest a status code in the middle of a multi-line > response. He said the multi-line response is ended prematurely with the > proper '.' line, then followed by the 400 status code. Ah, I see, there are two things going on at the same time here. > I.e. a response to 'list newsgroups' that would ordinarily return: > a 2xx line > 100 lines of group names > a '.' line > but in Fred's scenario would return: > a 2xx line > 15 lines of group names > a '.' line > a 4xx line Oh, no, I really don't think you can rely on that. I highly doubt most clients handle it. The syntax for multiline replies doesn't include another return code after the trailing ".\r\n". > Fred, I see where the wording of the RFC allows that. Based on the list > of such status messages and the examples given, I think the authors were > trying to describe the scenarios where the server sends a status line > that is *not* the response to a command: I'm pretty sure that NNTP implementations, just like ftp implementations and most other text-based Internet protocols that aren't IMAP, doesn't allow asychronous data of any sort. In other words, at any point in the protocol you are unambiguously either waiting for data from the server or the server is waiting for data from you. If the server is waiting for data from you, it's not going to send you data (unless it also closes the connection, something that's hard to miss). > As a data point, my copy of Trn4 doesn't seem to notice a 503 timeout > notice from the server until it tries to send a new command. I'll have > to trace the client-server conversation to know for sure, though. It > might be that the Typhoon server my ISP uses doesn't send the 503 until > a command is received. The latter is what I would expect. That's the recommendation for solving this same problem in the ftp control channel. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<yl3e0tyah5.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.mbox.zip!not-for-mailReferences:
<37404133@news3.us.ibm.net> <19990518164439.847$Gi@newsreader.com> <3741e194@news3.us.ibm.net> <ylbtfhyhal.fsf@windlord.stanford.edu> <gergFByMo7.41K@netcom.com>Show Full Headers
Complete Article Headers
Message-ID: <yl3e0tyah5.fsf@windlord.stanford.edu> Subject: Re: nntp client - method question Date: Tue, 18 May 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <37404133@news3.us.ibm.net> <19990518164439.847$Gi@newsreader.com> <3741e194@news3.us.ibm.net> <ylbtfhyhal.fsf@windlord.stanford.edu> <gergFByMo7.41K@netcom.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!not-for-mail X-Deja-AN: 479341338 Organization: The Eyrie Newsgroups: news.software.nntp