Closed
Bug 50529
Opened 24 years ago
Closed 23 years ago
Leaking nsImapProtocol objects again
Categories
(MailNews Core :: Networking: IMAP, defect, P2)
MailNews Core
Networking: IMAP
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: Bienvenu, Assigned: Bienvenu)
References
Details
(Keywords: memory-leak)
Attachments
(2 files)
2.11 KB,
patch
|
sspitzer
:
review+
mscott
:
superreview+
|
Details | Diff | Splinter Review |
5.58 KB,
text/plain
|
Details |
nsImapProtocol objects are leaking - startup with inbox, and shutdown, we leak an nsImapProtocol.
Assignee | ||
Updated•24 years ago
|
Assignee | ||
Comment 1•24 years ago
|
||
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).
Assignee | ||
Comment 3•24 years ago
|
||
nominating as a performance bug, since leaking memory will slow down performance. I think fixing bug 58657 will fix this.
Comment 4•24 years ago
|
||
58657 is fixed. Are we still leaking?
Comment 6•23 years ago
|
||
any chance of getting this by .9?
Assignee | ||
Comment 7•23 years ago
|
||
Assignee | ||
Comment 8•23 years ago
|
||
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 9•23 years ago
|
||
Comment on attachment 50803 [details] [diff] [review] proposed fix sr=mscott
Attachment #50803 -
Flags: superreview+
Comment 10•23 years ago
|
||
Comment on attachment 50803 [details] [diff] [review] proposed fix r=sspitzer
Attachment #50803 -
Flags: review+
Assignee | ||
Comment 11•23 years ago
|
||
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
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•