Article View: news.software.nntp
Article #37525Re: nntp client - method question
From: Fred J. LeFevre
Date: Tue, 18 May 1999 00:00
Date: Tue, 18 May 1999 00:00
39 lines
2833 bytes
2833 bytes
In article <19990518164439.847$Gi@newsreader.com>, curt@kcwc.com says... > >fjfevre@ibm.net (Fred J. LeFevre) wrote: >> I guess I was fixating on the sentence in 2.4.2, "In addition, below is >> listed a general set of response codes that may be received at any >> time.". > >> Can a client make the assumption that the server will end textual >> response via the single line containing only a period before sending one >> of these section 2.4.3 General Responses such as '400 service >> discontinued'? > >I've never heard of a server which did that. But more important, you >don't need to worry about it. It's unreasonable (and downright wrong) >to assume a client will look for those responses imbedded in a text >response from the server. You might get a response code at any time (like >while the line is idle) telling you the connection has been closed. But >the newer RFCs say the server should not send that. In practice, you only >need to look for those responses after you have sent a command. I guess I'm not making myself clear. RFC 977 has an example in section 4.5 entitled "Example 5 - interruption due to operator request". In that example, the server prematurely ends the textual response via sending "." before sending the 400 status response. This seems very reasonable to me, however, the RFC doesn't seem to dictate that behavior. My question is whether the client can always assume that behavior. I think from your answer, you imply the server will always end the textual response, even prematurely, by sending the "." line. That's what I wanted to know. As far as servers following newer RFC's, (or current drafts), I don't think I want to depend upon that! -- ------------------------------------------------------------------------ Fred J. LeFevre FJFevre@IBM.net 6307 Hammel Avenue (513) 631-7881 Cincinnati, Ohio 45237-4905
Technical Details
Message-ID:
<3741e194@news3.us.ibm.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!not-for-mailReferences:
<37404133@news3.us.ibm.net> <7hpipj$igb$1@shell1.ncal.verio.com> <37409af9@news3.us.ibm.net> <19990518164439.847$Gi@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <3741e194@news3.us.ibm.net> Subject: Re: nntp client - method question Date: Tue, 18 May 1999 00:00:00 +0000 From: fjfevre@ibm.net (Fred J. LeFevre) References: <37404133@news3.us.ibm.net> <7hpipj$igb$1@shell1.ncal.verio.com> <37409af9@news3.us.ibm.net> <19990518164439.847$Gi@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!not-for-mail X-Deja-AN: 478867416 X-Notice: should be reported to postmaster@ibm.net Content-Type: Text/Plain; charset=US-ASCII X-Complaints-To: postmaster@ibm.net X-Trace: 18 May 1999 21:54:28 GMT, 129.37.214.162 Organization: Channel Firm, Inc. MIME-Version: 1.0 Newsgroups: news.software.nntp