🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37535

Re: nntp client - method question

#37535
From: Curt Welch
Date: Tue, 18 May 1999 00:00
23 lines
1901 bytes
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.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <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
References: <37404133@news3.us.ibm.net> <7hpipj$igb$1@shell1.ncal.verio.com> <37409af9@news3.us.ibm.net>

Show Full Headers
Complete Article Headers
Message-ID: <19990518164439.847$Gi@newsreader.com>
Subject: Re: nntp client - method question
Date: Tue, 18 May 1999 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <37404133@news3.us.ibm.net> <7hpipj$igb$1@shell1.ncal.verio.com> <37409af9@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-mail
X-Deja-AN: 478842840
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-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp