Thread View: news.software.nntp
5 messages
5 total messages
Started by Brad Templeton
Sat, 18 Jan 1997 00:00
NNTP and cancelling a request for an article body
Author: Brad Templeton
Date: Sat, 18 Jan 1997 00:00
Date: Sat, 18 Jan 1997 00:00
59 lines
3003 bytes
3003 bytes
Netscape, in creating multithreaded browsing programs, taught us something that wasn't thought of when NNTP was designed. Users, particularly users on slow links, like to abort the fetch of large articles. The bad news is that the only way to do this is just to close the connection to the NNTP server and let it figure out that has a broken socket. This means a lot of connection re-negotiation, and in most servers process start/kill and other inefficiencies. But I think the feature is valuable. Even when not on a modem sometimes. How to support it? I suppose a STOP command could be added and the server could listen for it while sending the article by polling the read socket. Polling is always a pain though. The server could also be multithreaded so that the STOP command causes a new thread to start which then kills the sending thread, ideally by having it append some sort of transfer aborted note. Alternately one could make it faster and more efficient to stop and restart connections to NNTP servers. One way would be to make NNTP stateless, which would make it easier to write the server multithreaded (or even the "pool of N processes" style of some web servers). NNTP could be made stateless as follows: a) The client declares it supports stateless, and after that the ARTICLE, HEAD, BODY etc. commands must not be used, but identical commands which always provide a newsgroup and (if needed) article number are used. b) The client declares it supports stateless, and it gets back a cookie. It prepends the cookie to all future commands. The advantage of (a) is that it's truly stateless. The server keeps no state. It can work in the "pool of N processes" method. It's easy to modify servers to support it. The advantages of (b) are that it's probably easier to modify clients to support it, you can still track sessions for auditing (a big desire of mine) and you don't have to re-authenticate every new connection if it comes with a valid cookie. One could also do (c), namely truly stateless but with a cookie. The cookie would only be used for authentication (though the server could still insist on re-authentication) and for auditing sessions to track readership. This is the most work but it does everything. Comment? -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Re: NNTP and cancelling a request for an article body
Author: Brian Hernacki
Date: Tue, 21 Jan 1997 00:00
Date: Tue, 21 Jan 1997 00:00
48 lines
2698 bytes
2698 bytes
Brad Templeton wrote: > > Netscape, in creating multithreaded browsing programs, taught us something > that wasn't thought of when NNTP was designed. That's a nicer way than most people put it. :) > How to support it? I suppose a STOP command could be added and the server > could listen for it while sending the article by polling the read socket. > Polling is always a pain though. The server could also be multithreaded > so that the STOP command causes a new thread to start which then kills > the sending thread, ideally by having it append some sort of transfer > aborted note. Ben Polk and I talked about this last year alot. One of the ideas I liked the best that the client could request/recieve a cookie that identified a specific session. If it wanted to interrupt the current operation on that connection it could use a second, very short lived connection to ask the news server to interrupt the connection (identified by the cookie). The server could then return control of that connection to the client. This way a client would only use one connection for normal activity and a second (maybe on a different port) for the interrupts. > Alternately one could make it faster and more efficient to stop and > restart connections to NNTP servers. One way would be to make NNTP > stateless, which would make it easier to write the server multithreaded > (or even the "pool of N processes" style of some web servers). > > NNTP could be made stateless as follows: The problem is that NNTP is (or seems) to be designed very much to a stated protocol. This indirectly drives client software into a stated model. If we want a solution in the near future, it would need to be something clients could easily support. I would think that (1) making the servers better/faster at detecting dropped connections and (2) an async abort channel would integrate smoother than moving from a stated protocol to an unstated one. --brian
Re: NNTP and cancelling a request for an article body
Author: Evan Champion
Date: Wed, 22 Jan 1997 00:00
Date: Wed, 22 Jan 1997 00:00
22 lines
1680 bytes
1680 bytes
Brad Templeton wrote: > Alternately one could make it faster and more efficient to stop and > restart connections to NNTP servers. One way would be to make NNTP > stateless, which would make it easier to write the server multithreaded > (or even the "pool of N processes" style of some web servers). I think it is pointless to try to redesign NNTP to be stateless at this point especially when there is so much interest in such things as distributed news service. I would much rather see the effort expended in working on news-over-HTTP. With HTTP you've got lightweight servers that just need a little tweaking to understand news-over-HTTP, plenty of clients that also just need a little tweaking, widespread SSL, proxy caches, easy authentication to all kinds of services, etc. It's all there waiting for someone to write an RFC; all we need is an overview broadcaster and we're in business. Evan
Re: NNTP and cancelling a request for an article body
Author: Brad Templeton
Date: Wed, 22 Jan 1997 00:00
Date: Wed, 22 Jan 1997 00:00
40 lines
2469 bytes
2469 bytes
In article <32E5A75E.12B6@netscape.com>, Brian Hernacki <bhern@netscape.com> wrote: >Brad Templeton wrote: > >That's a nicer way than most people put it. :) Well, I was being nice. In fact, it would have been nice to have had this issue come up on the net, because the truth is that by opening several sessions, Netscape puts a high load on news servers and also makes auditing of usage much more difficult. I would like to see it done properly, and wish you guys had perhaps offered a patch to nnrpd (you do after all maintain your own version) to help. Did you? > > >Ben Polk and I talked about this last year alot. One of the ideas I >liked the best that the client could request/recieve a cookie that >identified a specific session. If it wanted to interrupt the current >operation on that connection it could use a second, very short lived >connection to ask the news server to interrupt the connection >(identified by the cookie). The server could then return control of that >connection to the client. But as you know many servers are not written multithreaded, so that would require some IPC. Sure, it's not hard to do signals but I like the other approaches if you are going to do a cookie. Starting up a new server is hard work, unless the server is a single multithread or pool-o-processes program to begin with. > >The problem is that NNTP is (or seems) to be designed very much to a >stated protocol. This indirectly drives client software into a stated >model. Not really. It retains, as I said, very little state -- the current group and article number. Easy to send each time or use a cookie. -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Re: NNTP and cancelling a request for an article body
Author: Brad Templeton
Date: Fri, 24 Jan 1997 00:00
Date: Fri, 24 Jan 1997 00:00
34 lines
2126 bytes
2126 bytes
In article <32E6376F.14C0@synapse.net>, Evan Champion <evanc@synapse.net> wrote: >Brad Templeton wrote: >I think it is pointless to try to redesign NNTP to be stateless at this >point especially when there is so much interest in such things as >distributed news service. > >I would much rather see the effort expended in working on >news-over-HTTP. With HTTP you've got lightweight servers that just need >a little tweaking to understand news-over-HTTP, plenty of clients that >also just need a little tweaking, widespread SSL, proxy caches, easy >authentication to all kinds of services, etc. It's all there waiting >for someone to write an RFC; all we need is an overview broadcaster and >we're in business. Until there is the proposed transactional TCP I don't think HTTP is write for distributed fetch, even the HTTP people agree that it needs fixing there, and they have done things like keep-alives. NNTP wants to be "mostly stateless" which is to say that keeping alive connections is a must from the get-go. However, a good design is connections that stay alive but die after a short timeout, like a minute or two, and are easy to get going again. I've proposed a UDP based single article fetch protocol, though there are some issues with network congestion to worry about there. -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
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