Closed Bug 99228 Opened 23 years ago Closed 23 years ago

after connections timed out, you can't make new imap connections.

Categories

(MailNews Core :: Networking: IMAP, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.5

People

(Reporter: Bienvenu, Assigned: Bienvenu)

References

Details

(Whiteboard: PDT+)

Attachments

(1 file)

If you have filled the imap connection cache, by opening five folders, and then sit and wait for 30 minutes until the connections have timed out, then try to select one of the five folders again, it won't open - it will just spin. The fix is to notice that one of the connections in the cache has timed out and decrement the count of connections in the cache. I'll attach a fix in a sec.
Attached patch proposed fixSplinter Review
Comment on attachment 48974 [details] [diff] [review] proposed fix sr=mscott
Attachment #48974 - Flags: superreview+
adding some keyword stuff. We'll want this on the eMojo branch.
Keywords: nsbranch+
Target Milestone: --- → mozilla0.9.5
*** Bug 95947 has been marked as a duplicate of this bug. ***
fix checked in (r=sspitzer) To recreate the bug, select five different folders, then wait for over 30 minutes, then try to select another folder. Before the fix, the last folder select should not do anything (e.g., cause any status msgs or network connections). After the fix, the folder should load fine. This may also be the cause of some problems Bob Lord reported on mscott...
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment on attachment 48974 [details] [diff] [review] proposed fix >+ connection = null_nsCOMPtr(); >+ i--; cnt--; // if the connection times out, we'll remove it from the array, As far as I know, null_nsCOMPtr() is deprecated and should not be used in new code. Instead just assign the pointer nsnull.
Is this checked into the branch yet? I've been seeing this problem on the 094 branch all week.
no, nothing's checked into the branch, because netscape doesn't own the branch yet.
ooops this is supposed to stay open until we can check it into the branch.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Blocks: 99508
Per the PDT meeting today, this bug is PDT+.
Whiteboard: PDT+
Mscott - We are ready to take checkins, let's get it in.
I think David's stuck in Seattle. I just checked this into the branch for him.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
Verified on Linux 09-27-04-0.9.4 build. After connections timed out, reselect the 6th folder, msg load without problems. Will verify on other platforms later.
Verified on WinNT 10-01-05-0.9.4 build Verified on Mac 10-01-03-0.9.4 build After connections timed out, select the 6th folder, msg load without problems. Marking as verified.
Status: RESOLVED → VERIFIED
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: