Article View: news.software.nntp
Article #23203Quickly retrieving headers from a newsgroup
From: Mark Hoffman
Date: Wed, 12 Nov 1997 00:00
Date: Wed, 12 Nov 1997 00:00
41 lines
2310 bytes
2310 bytes
All, I'm working on some software that needs to have the ability to pull articles of a news server. I'm using RFC 977 as my Bible and have sucessfully made most of the code work just fine. Trouble is, it is really slow. For example, I need the ability to retrieve the headers of messages that have been added since a certain date. Since my news server does not support the NEWNEWS command, I wrote code that retrieves all of the headers in the group and then analyzes them later. Obviously, it is hugely inefficient to download all of the headers everytime, just to check to see which ones have been added. I tried setting the article pointer to the last article, then using the LAST command to move backwards through the articles, hoping that once I saw an article with a date that was less than the date I was checking for, I could stop checking. But I've since learned that using the LAST command doesn't necessarily return the articles in chronological order. Even if that wasn't a problem, when it retrieves the headers it seems so slow. All of my newsreaders can download 300 headers in about 2 seconds on my connection (400 kb satellite). My program takes several minutes! All I am doing is issuing a LAST command, followed by a HEAD command. But it is still slow. Does anyone have any ideas what I might be doing wrong? Are there easier ways to accomplish what I'm after? If someone could even just point me to an article, white paper, etc. I would be most grateful. Thanks in advance, Mark Hoffman
Technical Details
Message-ID:
<1BCCA6CDCB037A0A.657F110DA02551D3.8C970AD883221242@library-proxy.airnews.net>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-mailShow Full Headers
Complete Article Headers
Message-ID: <1BCCA6CDCB037A0A.657F110DA02551D3.8C970AD883221242@library-proxy.airnews.net> Subject: Quickly retrieving headers from a newsgroup Date: Wed, 12 Nov 1997 00:00:00 +0000 From: "Mark Hoffman" <lynx@lynxbroadcasting.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: 288948099 X-Orig-Message-ID: <64cgme$i1o@library.airnews.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 NNTP-Posting-Time: Wed Nov 12 09:06:54 1997 Organization: Lynx Broadcasting NNTP-Proxy-Relay: library.airnews.net Newsgroups: news.software.nntp