Thread View: news.software.nntp
8 messages
8 total messages
Started by Sergey Nefediev
Fri, 29 Nov 1996 00:00
Time of replay on NEWNEWS command is too long.
Author: Sergey Nefediev
Date: Fri, 29 Nov 1996 00:00
Date: Fri, 29 Nov 1996 00:00
14 lines
755 bytes
755 bytes
Does anyone know anything about this? How can i work around one? Thanks. --- Sergey Nefediev (nefis@sph.spb.su) SPH Fri, 29 Nov 96 13:10 +0300 MSK
Re: Time of replay on NEWNEWS command is too long.
Author: David Woolley
Date: Sun, 01 Dec 1996 00:00
Date: Sun, 01 Dec 1996 00:00
27 lines
1817 bytes
1817 bytes
In article <1996Nov29.131926@sph.spb.su>, Sergey Nefediev <nefis@sph.spb.su> wrote: Subject: Re: Time of replay on NEWNEWS command is too long. >Does anyone know anything about this? >How can i work around one? Unless your ISP is Demon (who run (trade secret) software optimised for NEWNEWS), the politically correct answer is to get an active feed - UUCP is most efficient for unfiltered batch feeds, even better if you can get them to gzip the batches. The pragmatic solution for ISPs who don't mind passive feeds but won't supply an active one, is to use a news grabber which issues GROUP and ARTICLE commands (plus others to get list of the articles in the group). Even this is considered politically incorrect by some here. (suck does this, but not quite as cleanly as it might.) -- David Woolley, London, England david@djwhome.demon.co.uk (Sending any email to this site constitutes a licence to copy it to any company which might reasonably be assumed to have transported it or might reasonably be assumed to service any addresses quoted in it. 15Sep1996)
Re: Time of replay on NEWNEWS command is too long.
Author: Chrisy Luke
Date: Tue, 03 Dec 1996 00:00
Date: Tue, 03 Dec 1996 00:00
33 lines
2130 bytes
2130 bytes
On Sun, 1 Dec 1996 16:24:20 GMT, david@djwhome.demon.co.uk (David Woolley) wrote: >Unless your ISP is Demon (who run (trade secret) software optimised for >NEWNEWS), the politically correct answer is to get an active feed - >UUCP is most efficient for unfiltered batch feeds, even better if you >can get them to gzip the batches. The approach I took, which I'm not keeping secret :) is, for each article, write a mini-history file to the spool directory of each group the article appears in, giving arrival time and message ID (as a minimum). You then change NEWNEWS to make a query on each group-based history file, in the order given. The file is much smaller and the initial binary-chop has a smaller targer, and then the sequential scan covers only data you are interested in rather than lots that you aren't. You also have to change the outside loop to scan the list of newsgroups so you can wildmat the group-pattern given by the user against each one, unless you want to disallow group wildcards. Sorry, I can't give patches for this. I have a number of other mods in there that I don't want to disclose right now... :) Chris. == chrisy@easynet.net, chrisy@flirble.org.uk, chrisy@etsiig.uniovi.es == Newsmaster and Senior Systems Developer for Easynet Group Plc. == To Flirble or not to Flirble? That is not a question, but a == statement of being, of life and of survival.
NEWNEWS is bad news today (Was: Time of replay on NEWNEWS command is too long.)
Author: Alec Muffett
Date: Wed, 04 Dec 1996 00:00
Date: Wed, 04 Dec 1996 00:00
67 lines
3780 bytes
3780 bytes
chrisy@easynet.net (Chrisy Luke) writes:
> The approach I took, which I'm not keeping secret :) is, for each
> article, write a mini-history file to the spool directory of each
> group the article appears in, giving arrival time and message ID (as a
> minimum). You then change NEWNEWS to make a query on each group-based
> history file, in the order given. The file is much smaller and the
> initial binary-chop has a smaller targer, and then the sequential scan
> covers only data you are interested in rather than lots that you
> aren't.
I suspect NEWNEWS is flawed in the modern environment, anyway - that's
why when I wrote something to replace "slurp" I shied away from it.
NEWNEWS was OK back in the 80s when I was reading news on the UCW
Aberystwyth LAN (*and* I was the news admin for the university) - back
when News arrived in *huge* (well, we thought so) batches, via X.25,
every 6 hours or so, and was integrated quietly with the rest of the
C-News database.
Since everyone was running (about) the same clock and since the
granularity of new messages was so coarse, there was little likelihood
of missing anything.
Now (I am still a news admin, now for a big company, 8 years later)
articles arrive by the millisecond and if your clock is wrong you
*are* going to miss out; consider:
If your little dialup workstation thinks it is 12:05 and your NNTP
server thinks it's 12:00, and your workstation asks for anything that
has arrived at the NNTP server within the last hour (since 11:05) -
the NNTP server will not know you're 5 minutes fast and tell you about
the articles that arrived since *1100* - instead you're going to miss
5 minutes worth of articles. Perhaps a few hundred.
If the time difference is more heinous still (like mine recently was,
after the date got screwed up somewhere between a DOS reboot and the
BST->GMT change, when it got 23 hrs out of sync) then you're going to
miss even more. If you're in a different *timezone* to the east of
your NNTP server, you're going to get really confused unless your
timezone information is exactly right.
This is really bad news as passive and semi-passive feeds are becoming
more prevalent with internet expansion.
What's missing is the ability to ask the NNTP server what time *it*
thinks it is (to the millisecond) either when you first connect,
effectively giving you a cookie (YYMMDD HHMMSS[.NNNN]) that you can
hand back to the server next time you connect, saying "give me all the
articles you have which have arrived since you gave me this cookie".
Alternatively, you can do like I did with SnarfNews (see website below
if you're interested) - maintain per-group article counts and fetch
articles by number, thus avoiding the whole muddy issue of clock
synchronisation.
Followups to news.software.nntp.
--
alec muffett, oxford, england
please reply to: alecm @ crypto.dircon.co.uk (without spaces)
http://www.users.dircon.co.uk/~crypto/
Re: Time of replay on NEWNEWS command is too long.
Author: David Woolley
Date: Sat, 07 Dec 1996 00:00
Date: Sat, 07 Dec 1996 00:00
40 lines
2817 bytes
2817 bytes
In article <32b266c5.276169748@cherry.news.easynet.net>, Chrisy Luke <chrisy@easynet.net> wrote: > >The approach I took, which I'm not keeping secret :) is, for each >article, write a mini-history file to the spool directory of each >group the article appears in, giving arrival time and message ID (as a >minimum). You then change NEWNEWS to make a query on each group-based >history file, in the order given. The file is much smaller and the ..... Empirically this is what Demon do, although attempts to get clarification (so as to know the most efficient sucking strategy) produce "no comment" responses. In the past, before they got so commercial, they admitted to an older tactic, which they probably still use, which is to cache the hits from the history file, in the hope that the sucker will then proceed to fetch the articles it hit, on the same connection. (Someone then invented an optimised news grabber which used two connections, because of the dead time in the NEWNEWS phase!!) Another trick that could be used, is to take advantage of the locality of reference resulting from sorting the returns by group, and doing a chdir for each new group whilst fetching the articles. (This sorting could be considered unreasonable behaviour, but I think it is likely to cause less problems than their tendency to back fill articles below the current highest article number (an artefact of faking one server on multiple ones)). I don't know if it still does it, but one "feature" of the Demon approach is that you get the same ID returned for each subscribed group to which it is cross-posted, whereas normally this would only happen if you had to split the newsgroup list to meet the command length limits. -- David Woolley, London, England david@djwhome.demon.co.uk (Sending any email to this site constitutes a licence to copy it to any company which might reasonably be assumed to have transported it or might reasonably be assumed to service any addresses quoted in it. 15Sep1996)
Re: NEWNEWS is bad news today (Was: Time of replay on NEWNEWS command is too long.)
Author: David Woolley
Date: Sun, 08 Dec 1996 00:00
Date: Sun, 08 Dec 1996 00:00
77 lines
4028 bytes
4028 bytes
In article <m3sp5miuj1.fsf@crypto.dircon.co.uk>, Alec Muffett <alecm@crypto.dircon.co.uk%antispam> wrote: > >I suspect NEWNEWS is flawed in the modern environment, anyway - that's >why when I wrote something to replace "slurp" I shied away from it. > > >If your little dialup workstation thinks it is 12:05 and your NNTP >server thinks it's 12:00, and your workstation asks for anything that Normally slurping clients set the time from the server (certainly true of KA9Q, WinDIS and Turnpike (which also supports GROUP/ARTICLE mode, and has the option of not resetting the PC clock), and slurp is normally used in conjunction with rdate or netdate). >has arrived at the NNTP server within the last hour (since 11:05) - >the NNTP server will not know you're 5 minutes fast and tell you about >the articles that arrived since *1100* - instead you're going to miss >5 minutes worth of articles. Perhaps a few hundred. Slurping clients normally ask for a time slightly earlier than the start of the last run to compensate for this. They need to de-dupe the feed anyway, if they have more groups than fit on one command line, or with servers like Demon's which return once for each cross-posted group. >miss even more. If you're in a different *timezone* to the east of >your NNTP server, you're going to get really confused unless your >timezone information is exactly right. All the well written slurpers work exclusively in UTC - this causes support problems for PC users who don't have the full timezone information as their clocks are likely to reset to standard time when the user thinks it is daylight saving time. All the PC ones I know will accept proper daylight saving time rules. > >What's missing is the ability to ask the NNTP server what time *it* >thinks it is (to the millisecond) either when you first connect, You don't need better than a few minutes of accuracy. Some NNTP servers do support a (non-standard) DATE command: :!telnet localhost nntp Warning: "/home/david/.article" has been modified but not yet saved Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 200 djwhome NNTP[auth] server version 1.5.12.1 (1 Jan 1995) ready at Sun Dec 8 22:19:04 1996 (posting ok). date 111 19961208221906 quit 205 djwhome closing connection. Goodbye. Connection closed by foreign host. but, in any case, it is a rare Unix server that doesn't service the time and daytime ports. > >Alternatively, you can do like I did with SnarfNews (see website below >if you're interested) - maintain per-group article counts and fetch >articles by number, thus avoiding the whole muddy issue of clock >synchronisation. (Which is what I actually do, although Demon's server has a tendency to lie about the high water mark, and then back fill recent articles. Demon encourage sucking feeds.) -- David Woolley, London, England david@djwhome.demon.co.uk (Sending any email to this site constitutes a licence to copy it to any company which might reasonably be assumed to have transported it or might reasonably be assumed to service any addresses quoted in it. 15Sep1996)
Re: NEWNEWS is bad news today (Was: Time of replay on NEWNEWS command is too long.)
Author: Per Hedeland
Date: Mon, 09 Dec 1996 00:00
Date: Mon, 09 Dec 1996 00:00
34 lines
2185 bytes
2185 bytes
In article <m3sp5miuj1.fsf@crypto.dircon.co.uk>, Alec Muffett <alecm@crypto.dircon.co.uk%antispam> writes: |> What's missing is the ability to ask the NNTP server what time *it* |> thinks it is (to the millisecond) either when you first connect, |> effectively giving you a cookie (YYMMDD HHMMSS[.NNNN]) that you can |> hand back to the server next time you connect, saying "give me all the |> articles you have which have arrived since you gave me this cookie". Uh, you mean, like 200 erix.ericsson.se InterNetNews NNRP server INN 1.5 28-Nov-1996 ready (posting ok). DATE 111 19961209101024 (it's not new to 1.5 either). OK so it isn't millisecond, but by the time the server has managed to find anything useful for the subsequent NEWNEWS command, you can rest assured that more than a second has passed...:-) (Or just sleep a second first, of course.) |> Alternatively, you can do like I did with SnarfNews (see website below |> if you're interested) - maintain per-group article counts and fetch |> articles by number, thus avoiding the whole muddy issue of clock |> synchronisation. Not to mention avoiding the wrath of News admins whose servers you bring to their knees:-) - or the fact that NEWNEWS is disabled by default in INN 1.5 (seems I provided the code for that, but at least I left it enabled by default:-). --Per Hedeland per@erix.ericsson.se
Re: NEWNEWS is bad news today (Was: Time of replay on NEWNEWS command is too long.)
Author: Chrisy Luke
Date: Wed, 11 Dec 1996 00:00
Date: Wed, 11 Dec 1996 00:00
53 lines
3159 bytes
3159 bytes
On 04 Dec 1996 08:27:30 +0000, Alec Muffett <alecm@crypto.dircon.co.uk%antispam> wrote: >Now (I am still a news admin, now for a big company, 8 years later) >articles arrive by the millisecond and if your clock is wrong you >*are* going to miss out; consider: Weren't you at sun? What made you move?! (Neil McRae says hi:) >This is really bad news as passive and semi-passive feeds are becoming >more prevalent with internet expansion. Nahh. Most of the people doing it are pushing it down 28.8 and 33.6 analog modem lines. It can't go that fast so as to make a problem. Unless all your customers run Unix on an Intel based box, of course. >What's missing is the ability to ask the NNTP server what time *it* >thinks it is (to the millisecond) either when you first connect. As has been said, you don't need it to the millisecond, but most news servers are run on Unix based boxes and honour the timeday port. Many news servers will also honour NTP queries if you really need it that accurately, or you can at least get NTP-type clock setters for most platforms and it wouldn't be too difficult to build it into any news transfer agent that required it. Grab the source for ntpdate. >Alternatively, you can do like I did with SnarfNews (see website below >if you're interested) - maintain per-group article counts and fetch >articles by number, thus avoiding the whole muddy issue of clock >synchronisation. I just prefer dealing with Art-ID's - I've played with DB code enough to have a love-hate relationship with them. Don't even get me started on Art-Num's! What I do like the idea of, however, my PC clock being sycnchronised to the correct time each time I go to download news. If anyone has bad timezone info, more the fool them, and if their clock is wrong, I won't see their email! ;) Oh, you can always run an ntpd without a permanent connection, so long as your clock doesn't drift too much between connections. And some news servers refuse articles with wildly incorrect dates. Chris. == chrisy@easynet.net, chrisy@flirble.org.uk, chrisy@etsiig.uniovi.es == Newsmaster and Senior Systems Developer for Easynet Group Plc. == Someone once said A Flirble is like Christmas. Only more so. With == less of the fuzzy bits and more of the haze. They were wrong.
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