Closed Bug 62731 Opened 25 years ago Closed 25 years ago

News attachments are downloaded multiple times.

Categories

(MailNews Core :: Networking: NNTP, defect, P3)

x86
Windows 98
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mozilla, Assigned: Bienvenu)

Details

(Keywords: helpwanted, verifyme)

Attachments

(2 files)

When I click on a newsgroup message (might happen with mail as well... not sure) the message displays in the bottom pane. Then an image (usually gif diagrams, but also sometimes jpeg pictures) followwing the message. The problem is that there is a delay when I fist get the message -- as if it were downloading the attachment. Then there is another delay as the attachment appears. This isn't as bad at school where there is a fast connection, but from home its horrible. What is worse, is that if I choose to save the attachment by clicking the paper clip and the file name, it downloads the file AGAIN while saving it to my hard drive. (this happens also when I click on the image and say "save image as" (although then it gives me the server's name for the attachment) The problem is that there is unnecessary loading of the attachments which causes a problem with me because I cannot have more than 2 connections to the server simultaneously. If I try to save the image and move onto the next message the server refuses connection because I'm already logged on. THis is a problem when Im at home and can't wait for the experiment images to be saved between each message. Shouldn't the image be saved in the cache while it is being viewed? at least it shouldn't be downloaded twice. I could have sworn that NS4x only downloaded the image once.
QA Contact: esther → stephend
Anybody really wise in the attachments area?
*** Bug 14301 has been marked as a duplicate of this bug. ***
*** Bug 14301 has been marked as a duplicate of this bug. ***
accepting. I think we aren't using the cache for news mesages.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
that is correct - I will be fixing news to use the memory cache as part of the offline work. Taking.
Assignee: sspitzer → bienvenu
Status: ASSIGNED → NEW
david, you are the wind beneath my wings!
I implemented the memory cache stuff for news - this *should* be fixed now. Stephen, to verify, you can use NNTP protocol logging - see me if you need info on turning on NNTP logging.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Okay, here's what I did to try and verify this bug: Build 2001011604, WIndows 2000. I enabled NNTP logging, and I'll attach the log. I went to the Test newsgroup on the server News, and clicked on my message <3A5DFB2C.3050906@netscape.com>. There is an attachment (a bugzilla HTML page) that I clicked Open, and the log should tell you if it has indeed been fixed. Quick question for David/Seth - is it expected behavior to send all of the 0[2f3fd0]: Next state: NNTP_READ_ARTICLE commands we send? I only viewed the message once.
Sorry, meant to say I clicked Save, as that is what the scope of this bug is. Log coming.
we're not sending NNTP_ARTICLE commands to the server; we're just writing out our status to the protocol log. NNTP logging, unlike IMAP logging, doesn't write out the text of the article retrieved. It looks to me like we download the article once when you clicked on it, and once when you saved the attachment. What the bug was describing was downloading an article multiple times when you just read it, e.g., if the article had five inline attachments, reading it once would cause the whole article to get downloaded five times.
yes, that looks correct. You can mark it verified.
Thanks for all your help David! BTW, any really good books/sites you recommend so I can get my feet wet in all of this? I'm currently in the process of reading Tom Limoncelli's newsreader whitepaper. Marking VERIFIED, FIXED.
Status: RESOLVED → VERIFIED
if you read that white paper, I'm pretty sure you'll know more about NNTP than I do :-) The RFC is a good thing to read, and there's probably some newer revisions that describe the heavily used exensions like XOVER. The newsreader white paper is probably the perfect thing to read, however, because much of the RFC has to do with server to server protocol for doing replication, which we're not interested in.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: