Thread View: news.software.nntp
2 messages
2 total messages
Started by Jeff Garzik
Sat, 07 Dec 1996 00:00
Dynamic news retrieval?
Author: Jeff Garzik
Date: Sat, 07 Dec 1996 00:00
Date: Sat, 07 Dec 1996 00:00
26 lines
1723 bytes
1723 bytes
I've been following the discussions about dynamic news retrieval, NX records and such, and I want to hack that into my INN. It appears to be a simple change in nnrpd/article.c (ARTopenbyid) to call my own function which does the dynamic retrieval. The sticking point is where to get the news from. After querying the local feeds, the code will hit a list of news archives, operating under an overall timeout value -- ie. from the time the ARTICLE <msgid> command is received, no more than N seconds may elapse before the NNTP client gets a response. Any idea about getting old news? Are there NNTP-capable servers, like maybe DejaNews, that will serve old news to the general public? The code isn't written yet. I'm thinking about making it modular, so that if some ambitious individual has a complete archive of alt.ketchup, a special script can be written (and plugged in easily) to take care of the retrieval. -- Jeff Garzik Jeff.Garzik@spinne.com Spinne, Inc. http://www.spinne.com/ State-of-the-art efficient systems for the Internet.
Re: Dynamic news retrieval?
Author: Brad Templeton
Date: Sat, 07 Dec 1996 00:00
Date: Sat, 07 Dec 1996 00:00
44 lines
2079 bytes
2079 bytes
THe problem with NNTP is that it's way too noisy for single article fetches. If you're going to talk to a neighbour server and ask for many articles over the course of a session, then NNTP is fine, but consider NNTP for a single fetch; Full TCP session open overhead Get back "hello" from server send "mode reader" (A smart NNTPD would not need this it would immediatley respond to the "article" command) get back ack of "mode reader" send "article request" get back article send "quit" get back 205 code close TCP connection Compare that to my proposal which was: a) If article is short, send UDP packet requesting it b) Get back UDP packet with article Otherwise, open TCP connection Send article request, include in request to close after receiving art. Get back article close connection (unless request indicated to keep it open for more) Vastly less network load. More threadable too. People also don't want to leave NNTP ports open to people. Now, what you may be talking about is the very old plan, part of the original NNTP many years ago, to support the concept of slave servers. So that your NNTP server would keep alive a connection to a bigger server and send it requests for articles the local server didn't have. Problem of course is the master servers have to keep a *lot* of NNTP connections open -- 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