Article View: news.software.nntp
Article #18280Re: 'takethis' response codes
From: Jef Poskanzer
Date: Thu, 05 Jun 1997 00:00
Date: Thu, 05 Jun 1997 00:00
75 lines
3409 bytes
3409 bytes
ernie <ernie@nowhere.com>:
}Could someone please either tell me what the server responses are to the
}check/takethis routine, or (even)better) tell me where this information is
}documented for further reference?
From a never-published draft RFC on NNTP streaming:
4.2. The CHECK Command
4.2.1. CHECK
CHECK <messageid>
The CHECK command is similar to the first half of the IHAVE
command. It asks the server whether it has received an
article whose id is <messageid>. If the server has the
article, it will return a response code of 438; if it
doesn't have the article, it returns code 238. The server
may also return code 431 if it wishes the article to offered
again later. This can happen if the server is currently
receiving that message-id from another source.
4.2.2. Responses
238 <messageid> no such article found
431 <messageid> try again later
438 <messageid> already have it
Note: this is not like the STAT command, which typically
does a stat() system call on the disk file, and therefore
reports as missing articles that have been cancelled or
expired. This is not appropriate for this use - CHECK, like
IHAVE, should just do a history-file lookup.
Another note: it would be possible to leave the message-id
out of the responses - instead of relying on the message-id
being in the response, you could keep a queue of articles
asked for and match up the responses by the order they
arrive. However, this seems like it would be asking for
trouble - NNTP clients and servers can already get out of
sync with each other, and it would be a mistake to make this
even more likely. Also, putting the message-id in the
response gets more flexibility to the implementor - for
instance, it allows parallel versions, using threads or mul-
tiple processors.
It would be possible to get by with a slightly changed STAT
command instead of a new CHECK command, one that merely does
a history-file lookup instead of a stat(). However, it's
generally a bad idea to change existing commands, even in
ways that seem likely to be harmless. You never know what
software you'll break. The cost of adding a new command is
small.
4.3. The TAKETHIS Command
4.3.1. TAKETHIS
TAKETHIS <messageid>
<article text>
.
The TAKETHIS command sends an article from the client to the
server, in the manner specified for text transmission. A
response code indicating success or failure of the transfer
of the article will be returned.
4.3.2. Responses
239 <messageid> article transferred ok
431 <messageid> transfer failed - try again later
439 <messageid> article rejected - do not try again
Technical Details
Message-ID:
<5n7m2d$g1u$1@shell3.ba.best.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-mailReferences:
<5n7b40$s4o$1@tomato.dussco.com>Show Full Headers
Complete Article Headers
Message-ID: <5n7m2d$g1u$1@shell3.ba.best.com> Subject: Re: 'takethis' response codes Date: Thu, 05 Jun 1997 00:00:00 +0000 From: Jef Poskanzer <jef@acme.com> References: <5n7b40$s4o$1@tomato.dussco.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: 246424913 Distribution: inet Organization: Paratheo-Anametamystikhood Of Eris Esoteric Reply-To: Jef Poskanzer <jef@acme.com> Newsgroups: news.software.nntp