Article View: news.software.readers
Article #21169Re: What's this 'Mozilla' trash anyway?
From: Jamie Zawinski
Date: Thu, 02 May 1996 00:00
Date: Thu, 02 May 1996 00:00
90 lines
5593 bytes
5593 bytes
John E. Davis wrote:
>
> I have not done it yet but I have thought about it. Whenever I see 3
> identical posts I check the headers and I almost always see the word
> `Mozilla' somewhere. It is at that point that I contemplate killing all
> Mozilla posts. The only thing that has prevented me from doing
> this is the lack of the appropriate header in the overview database.
>
> Accidentally posting identical articles should be easy to prevent.
Well, it boils down to "user error", but there are a few things that
Mozilla (aka Netscape Navigator) used to do that made it an easier error
for users to make.
In betas before the final 2.0 release, including 1.0 and 1.1, when
you hit the "Send" button on a mail/news composition window, the button
stayed active -- and if you managed to accidentally hit it again before
the delivery had completed and the window had popped down, it would send
it again.
Before 2.0, it was not uncommon for people to accidentally double-click
and generate duplicates that way. In 2.0 and newer, this part of the
problem is fixed by making all buttons except the "Stop" button gray out
as soon as delivery starts; to interupt that delivery and start delivery
again, you have to hit the stop button, then hit the send button again;
so it's not possible to do it by a simple finger-fumble.
Now, there's another problem here that's a bit harder to address.
News delivery works like this:
1: connect to NNTP server;
2: send the POST command;
3: wait for a reply (to see whether posting is currently allowed);
4: send each line of the message;
5: send the "end of message" indicator ("." alone on a line);
6: wait for reply (confirmation of the post, or error rejection).
You'll notice that there's something of a race condition here between
steps 5 and 6: if the user hits "stop" at that point, we don't yet know
whether the server has accepted the message. It *probably* has, since
we have sent all the data we have to send; but it hasn't responded yet.
So we don't know if, were we to "hang up", whether the message would be
sent or not.
This is compounded by the fact that the point between steps 5 and 6 is a
common place for INN (or its underlying inews, or something) to go off
into space for a long time, without giving any feedback. I'm not sure
why this happens, perhaps it's a result of the server being
miconfigured, or perhaps it only happens when the server is heavily
loaded, or when "expire" is running; but the fact is, there is often a
delay there at many sites, sometimes a long one.
So, users see this and think, "it must be wedged. I'll try again."
And they hit stop, and hit send, and now there are *two* copies in
the pipe (both stuck in the same way). Whereas if they had just
iconified the window, it would have completed the post normally
eventually (but maybe 15 minutes later, depending on how hosed the
NNTP server was...)
In later versions of Netscape (post 2.0, that is, 3.0b1 and newer, aka
"Atlas") we have tried to improve this by adding more feedback on the
composition window -- the "thermometer" will actually show how much of
the message has been sent; and when it reaches step 5, the message area
says "Message sent; waiting for reply..."
Another way we tried to avoid these duplicate posts is by making sure
that if the user hits "send" a second time on the same composition
window (without an intervening edit of the text) that we use the same
message ID for the message we attempt to send -- and since the NNTP spec
demands unique message IDs, if somehow the same message gets injected
into the NNTP stream twice, the NNTP server will throw one of the
duplicates away before anyone sees it. (Actually what we do is a little
bit more complicated/clever than this, but that's the gist of it.)
Most other news posting software sidesteps these problems by simply
locking the user interface solid until the post has completed; but we
didn't want to do that...
So, the bottom line is, you should see fewer duplicate posts coming from
Mozilla 2.0 than from earlier releases, and fewer still from 3.0.
--
Jamie Zawinski jwz@netscape.com http://www.netscape.com/people/jwz/
``A signature isn't a return address, it is the ASCII equivalent of a
black velvet clown painting; it's a rectangle of carets surrounding
a quote from a literary giant of weeniedom like Heinlein or Dr. Who.''
-- Chris Maeda
Technical Details
Message-ID:
<318923FF.5656@netscape.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<4l2qa1$ngg@sparky.navsea.navy.mil> <4l4v1i$j7i@news.tuwien.ac.at> <4lil2m$cr1@amaru.inf.utfsm.cl> <317EE736.5ABA@netscape.com> <slrn4nvmc7.rfd.ylee@simile.cc.columbia.edu> <3181188F.586@netscape.com> <4m2ui9$har@nnrp1.news.primenet.com> <4m7ukm$fb@xivic.ruhr.de> <slrn4ofl4r.raf.davis@wiwaxia.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <318923FF.5656@netscape.com> Subject: Re: What's this 'Mozilla' trash anyway? Date: Thu, 02 May 1996 00:00:00 +0000 From: Jamie Zawinski <jwz@netscape.com> References: <4l2qa1$ngg@sparky.navsea.navy.mil> <4l4v1i$j7i@news.tuwien.ac.at> <4lil2m$cr1@amaru.inf.utfsm.cl> <317EE736.5ABA@netscape.com> <slrn4nvmc7.rfd.ylee@simile.cc.columbia.edu> <3181188F.586@netscape.com> <4m2ui9$har@nnrp1.news.primenet.com> <4m7ukm$fb@xivic.ruhr.de> <slrn4ofl4r.raf.davis@wiwaxia.mit.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 152659160 Content-type: text/plain; charset=us-ascii Organization: Netscape Communications Corporation, Mozilla Division Mime-version: 1.0 Newsgroups: comp.infosystems.www.browsers.misc,news.software.readers X-mailer: Mozilla 3.0b4 (X11; U; IRIX 5.3 IP22)