Thread View: news.software.nntp
3 messages
3 total messages
Started by ernie
Thu, 05 Jun 1997 00:00
'takethis' response codes
Author: ernie
Date: Thu, 05 Jun 1997 00:00
Date: Thu, 05 Jun 1997 00:00
11 lines
744 bytes
744 bytes
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? Please respond in the newsgroup only, thanks! Ernie
Re: 'takethis' response codes
Author: 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
Re: 'takethis' response codes
Author: Forrest J. Cavalier III
Date: Fri, 06 Jun 1997 00:00
Date: Fri, 06 Jun 1997 00:00
23 lines
1137 bytes
1137 bytes
In article <5n7b40$s4o$1@tomato.dussco.com>, ernie@nowhere.com wrote...
>
>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?
>
>Please respond in the newsgroup only, thanks!
>
>Ernie
>
"Common NNTP Extensions" pointers and index at:
http://www.mibsoftware.com/userkt/nntpext/index.html
All the NNTP protocol docs through:
http://www.mibsoftware.com/userkt/0099.htm
Forrest Cavalier, Mib Software, INN customization and consulting
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads