Thread View: news.software.nntp
11 messages
11 total messages
Started by newone
Sat, 11 Apr 2015 09:37
HEAD command for transit-mode servers
Author: newone
Date: Sat, 11 Apr 2015 09:37
Date: Sat, 11 Apr 2015 09:37
4 lines
1115 bytes
1115 bytes
Why HEAD command is mandatory? I don't see how it can be useful for transit-mode servers (the ones that only receive articles from other servers and allow no reading.)
Re: HEAD command for transit-mode servers
Author: Russ Allbery
Date: Sun, 12 Apr 2015 04:23
Date: Sun, 12 Apr 2015 04:23
18 lines
1736 bytes
1736 bytes
newone <newone@example.tld> writes:
> Why HEAD command is mandatory? I don't see how it can be useful for
> transit-mode servers (the ones that only receive articles from other
> servers and allow no reading.)
That's a good question. I don't remember. In fact, I don't recall if it
even came up. Maybe because INN provides it in transit mode? A lot of
the standard was originally based on the historic behavior of INN.
It *is* useful for debugging with transit servers, but I'm not sure that's
important enough to make it mandatory.
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: HEAD command for transit-mode servers
Author: Julien ÉLIE
Date: Sun, 12 Apr 2015 09:54
Date: Sun, 12 Apr 2015 09:54
69 lines
3839 bytes
3839 bytes
Hi Russ, >> Why HEAD command is mandatory? I don't see how it can be useful for >> transit-mode servers (the ones that only receive articles from other >> servers and allow no reading.) > > That's a good question. I don't remember. In fact, I don't recall if it > even came up. Maybe because INN provides it in transit mode? A lot of > the standard was originally based on the historic behavior of INN. > > It *is* useful for debugging with transit servers, but I'm not sure that's > important enough to make it mandatory. Maybe something to look at for the next advertised argument in the VERSION capability :) Digging a bit into the ietf-nntp archives, I did not manage to find reasons for the HEAD command to be mandatory, except for the ones you already mentioned (debugging purpose and historic behaviour). Below a few excerpts. http://lists.eyrie.org/pipermail/ietf-nntp/2005-January/004955.html > OVER and HDR should be separate capabilities because they *can* > be used by message-ID (and note that we still have HEAD in the > mandatory commands). Would a transit server really support either of these? http://lists.eyrie.org/pipermail/ietf-nntp/2004-December/004875.html Ken> - We have a set of mandatory "core" commands which *all* servers Ken> MUST implement. The set of "core" commands is defined by the Ken> VERSION capability and as of VERSION 2, these are: CAPABILITIES, Ken> QUIT, HEAD, STAT, LIST ACTIVE http://lists.eyrie.org/pipermail/ietf-nntp/2004-December/004882.html >> You can make a good argument that even in that list, HEAD, STAT and >> LIST ACTIVE don't belong. In fact a majority of transit-only >> implementations don't implement at least one of those. > This list is based on the fact that they are all listed as "general" > commands in the current pre4 draft. I make no claims as to their > correctness, but I recall discussion that they are used by some > feeding clients/servers. HEAD and STAT are pretty much only for debugging purposes; they don't actually have a protocol purpose between transit servers. LIST ACTIVE is used sometimes to build feed patterns, but Andrew's correct that some transit servers have no concept of it. -- Julien ÉLIE « – Et on appelle comment ce genre de logis ? – HLM… Habitations Latines Mélangées… » (Astérix)
Re: HEAD command for transit-mode servers
Author: newone
Date: Mon, 13 Apr 2015 01:41
Date: Mon, 13 Apr 2015 01:41
17 lines
1850 bytes
1850 bytes
On 2015-04-12 09:54:34 +0000, Julien ÉLIE said: > http://lists.eyrie.org/pipermail/ietf-nntp/2004-December/004875.html > > Ken> - We have a set of mandatory "core" commands which *all* servers > Ken> MUST implement. The set of "core" commands is defined by the > Ken> VERSION capability and as of VERSION 2, these are: CAPABILITIES, > Ken> QUIT, HEAD, STAT, LIST ACTIVE Ouch. LIST ACTIVE is also mandatory? I guess I missed that. Well, there is really no reason for such commands as HEAD, STAT, and LIST ACTIVE to be available for clients of transit-mode servers (except for debugging purposes.) LIST ACTIVE is meaningless if I'm planning to receive all articles regardless of newsgroup and build list of newsgroups based on Newsgroups: headers of active articles.
Re: HEAD command for transit-mode servers
Author: newone
Date: Mon, 13 Apr 2015 02:42
Date: Mon, 13 Apr 2015 02:42
14 lines
1618 bytes
1618 bytes
On 2015-04-12 04:23:34 +0000, Russ Allbery said: > Maybe because INN provides it in transit mode? A lot of > the standard was originally based on the historic behavior of INN. That's too bad. I'm trying to create newsserver software for environment which makes clear distinction between heavy-read and heavy-write loads. Thus, I'm trying to make transit-mode server as write only. Even commands such as CHECK are using writes to check if Message-ID is already known. I probably will implement HEAD in hope that no server actually going to use it, but I would prefer not to do so.
Re: HEAD command for transit-mode servers
Author: Julien ÉLIE
Date: Mon, 13 Apr 2015 18:21
Date: Mon, 13 Apr 2015 18:21
35 lines
2614 bytes
2614 bytes
> Ouch. LIST ACTIVE is also mandatory? I guess I missed that.
No, LIST ACTIVE is not mandatory.
The messages I pointed out were discussing the contents of the upcoming
RFC. It was not finalized at that time.
If you look at RFC 3977, you will see:
7.6.3. LIST ACTIVE
This keyword MUST be supported by servers advertising the READER
capability.
Appendix B. Summary of Commands
+-------------------+-----------------------+---------------+
| Command | Indicating capability | Definition |
+-------------------+-----------------------+---------------+
| CAPABILITIES | mandatory | Section 5.2 |
| HEAD | mandatory | Section 6.2.2 |
| HELP | mandatory | Section 7.2 |
| QUIT | mandatory | Section 5.4 |
| STAT | mandatory | Section 6.2.4 |
[...]
The above 5 commands are the only mandatory ones.
--
Julien ÉLIE
« – Et on appelle comment ce genre de logis ?
– HLM… Habitations Latines Mélangées… » (Astérix)
Re: HEAD command for transit-mode servers
Author: Julien ÉLIE
Date: Mon, 13 Apr 2015 18:30
Date: Mon, 13 Apr 2015 18:30
26 lines
2260 bytes
2260 bytes
> I'm trying to make transit-mode server as write only. Even > commands such as CHECK are using writes to check if Message-ID is > already known. Note that you're not obliged to used streaming (CHECK/TAKETHIS). The IHAVE command may be used instead, but it will be slower because you cannot pipeline several IHAVE commands as you do not know in advance the answer (send the article or do not send it). > I probably will implement HEAD in hope that no server actually going to > use it, but I would prefer not to do so. Why not implement RFC 4643 (authentication) and advertise "AUTHINFO USER" in your capabilities? Then you answer 480 in response to a HEAD command (or 501 in case the syntax is incorrect). And you always reject authentication (481). I believe this is RFC-compliant. -- Julien ÉLIE « – Et on appelle comment ce genre de logis ? – HLM… Habitations Latines Mélangées… » (Astérix)
Re: HEAD command for transit-mode servers
Author: Russ Allbery
Date: Mon, 13 Apr 2015 19:33
Date: Mon, 13 Apr 2015 19:33
22 lines
2084 bytes
2084 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
>> I probably will implement HEAD in hope that no server actually going to
>> use it, but I would prefer not to do so.
> Why not implement RFC 4643 (authentication) and advertise "AUTHINFO
> USER" in your capabilities? Then you answer 480 in response to a HEAD
> command (or 501 in case the syntax is incorrect). And you always reject
> authentication (481).
> I believe this is RFC-compliant.
You could also just return 430 to all HEAD requests. That should be
compliant; it just means that you don't have the article on file. If
you're writing a pure transit server with no article storage beyond a
buffer for articles in transit, I think that's a reasonable response.
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: HEAD command for transit-mode servers
Author: Julien ÉLIE
Date: Mon, 13 Apr 2015 19:55
Date: Mon, 13 Apr 2015 19:55
19 lines
2121 bytes
2121 bytes
Hi Russ, >>> I probably will implement HEAD in hope that no server actually >>> going to use it, but I would prefer not to do so. > > You could also just return 430 to all HEAD requests. That should be > compliant; it just means that you don't have the article on file. > If you're writing a pure transit server with no article storage > beyond a buffer for articles in transit, I think that's a reasonable > response. Oh, yes, you're totally right. It is indeed the best thing to do in that case! -- Julien ÉLIE « – Et on appelle comment ce genre de logis ? – HLM… Habitations Latines Mélangées… » (Astérix)
Re: HEAD command for transit-mode servers
Author: newone
Date: Tue, 14 Apr 2015 22:44
Date: Tue, 14 Apr 2015 22:44
9 lines
1609 bytes
1609 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > Note that you're not obliged to used streaming (CHECK/TAKETHIS). The > IHAVE command may be used instead, but it will be slower because you > cannot pipeline several IHAVE commands as you do not know in advance the > answer (send the article or do not send it). Since CHECK/TAKETHIS and IHAVE are doing basically same thing and can share the code, I will implement both and let remote servers decide what they want to use.
Re: HEAD command for transit-mode servers
Author: newone
Date: Wed, 15 Apr 2015 00:50
Date: Wed, 15 Apr 2015 00:50
30 lines
2627 bytes
2627 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> You could also just return 430 to all HEAD requests. That should be >> compliant; it just means that you don't have the article on file. >> If you're writing a pure transit server with no article storage >> beyond a buffer for articles in transit, I think that's a reasonable >> response. > > Oh, yes, you're totally right. > It is indeed the best thing to do in that case! Thank you for advice, guys. I'm thinking of not standard transit-only server, but something more complicated. Let's say, there is a cluster of machines running distributed data storage software (similar to key-value NoSQL database.) According to software documentation, it automatically adjusts memory its processes use depending on the type of load (heavy-read or heavy write) to ensure maximum speed of operations. So I'm trying to split work between machines. Some will do read-only operations, some write-only, and client-facing machines will mix between two. There is a way for my "transit-only" server to perform HEAD and STAT, but if some remote server is going to do many of them, it may considerably reduce performance. I probably will implement these commands in honest way and as dummy routines which will always answer that article is not on file, then switch between them at compile time. Thank you again.
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