Closed Bug 50529 Opened 24 years ago Closed 23 years ago

Leaking nsImapProtocol objects again

Categories

(MailNews Core :: Networking: IMAP, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Bienvenu, Assigned: Bienvenu)

References

Details

(Keywords: memory-leak)

Attachments

(2 files)

nsImapProtocol objects are leaking - startup with inbox, and shutdown, we leak
an nsImapProtocol.
Status: NEW → ASSIGNED
Keywords: mlk, nsbeta3
Priority: P3 → P2
I have a theory about this - I believe the root cause is that we're leaking
nsStreamListenerEvent's, and this in turn is caused by the way we shutdown
connections. We just blast out a logout to the output stream, on the UI thread,
and continue on our merry way shutting down. I believe this causes stream
listener events to get created, but not handled (I'm not sure why that would be,
but it's probably because we're not processing the data that comes back for the
logout and close responses from the server. To fix this, we could either try to
get hold of the socket directly and write to it, if that would stop necko from
getting involved at all, or we could do this "the right way" and actually run
urls to shut down, and wait for the to finish before shutting down (this is
slower, and could cause a delay, if the server is down, for example).
- per mail triage
Whiteboard: [nsbeta3-]
nominating as a performance bug, since leaking memory will slow down
performance. I think fixing bug 58657 will fix this.
Depends on: 58657
Keywords: nsbeta3mail1
Whiteboard: [nsbeta3-]
58657 is fixed. Are we still leaking?
marking nsbeta1-
Keywords: nsbeta1-
any chance of getting this by .9?
Blocks: 92580
Attached patch proposed fixSplinter Review
cancelling the outstanding read request seems to clean up the leak of
nsImapProtocol objects, at least in the simple case. I'll need to try this at
home, and I need to make sure we're still sending the logout command to the server
Comment on attachment 50803 [details] [diff] [review]
proposed fix

sr=mscott
Attachment #50803 - Flags: superreview+
there are still cases where we leak the protocol objects, but in the basic case
of starting up and shutting down, we don't leak anymore. Woo woo!
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
OS: Windows NT → All
QA Contact: lchiang → stephend
Hardware: PC → All
<Dr. Evil>"We're hip, we're cool, tucca-tucca-tucca".

Verified FIXED ;-)
Status: RESOLVED → VERIFIED
No longer blocks: 92580
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: