Closed Bug 93210 Opened 23 years ago Closed 21 years ago

Shouldn't we be sending the "LOGOUT" command when quit Mozilla?

Categories

(MailNews Core :: Networking: IMAP, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 115349

People

(Reporter: bugzilla, Assigned: mscott)

References

Details

Currently I dont we send the "LOGOUT" when quiting Mozilla. Should we?
See also bug 62836...
This causes problems on my company's mailserver, because connections aren't
claused correctly on the server (TIME_WAIT etc ...)
Current dump of netstat (build 2001110903, Windows NT, only showing relevant
tcp-connections) :

Proto  Local Address          Foreign Address        State
TCP    ktpc494:1048           bemail03.net.alcatel.be:143  ESTABLISHED
TCP    ktpc494:1232           bemail03.net.alcatel.be:143  CLOSE_WAIT
TCP    ktpc494:1233           bemail03.net.alcatel.be:143  CLOSE_WAIT
TCP    ktpc494:1234           bemail03.net.alcatel.be:143  CLOSE_WAIT
TCP    ktpc494:1268           bemail03.net.alcatel.be:143  CLOSE_WAIT

At this moment, there's no mail-window open, but there's still a connection to
the imap-server bemail03 for mail-checking (the first one). But the other ones ?
I've seen them in either ESTABLISHED state or CLOSE_WAIT state, but they're
*never* cleaned up. I know that the first one is used for biff-checking, becuase
there's traffic on them every 5 minutes. The others ones stayed like this for
over an hour.

Note that as a workaround, you can close the connections by clicking the
online/offline toggle in the right corner. This seems to really close the
connections, and they're put in a TIME_WAIT state.

I've also added a comment in bug 87825 , but that bug wants to remove all
connections when the mail-window is closed.
Blocks: 87825
Summary: Shouldn't we be sending the "LOGOUT" command? → Shouldn't we be sending the "LOGOUT" command when quit Mozilla?
No longer blocks: 87825
I am wondering to know whether you mean "quit for whole Mozilla or not"? 

Since BEFORE I close Mozilla from browser, I got:
 
carbuncle.143        h-10-169-108-247.nscp.aoltw.net.1925  8760      0  8760    
0 ESTABLISHED                                      

AFTER I close/exit Mozilla from the browser, it has been cleaned up. 
I don't know whether you are using different IMAP server as me or not? 
( I am connecting IMAP Messaging server)
Can you retest again or provide more info here? Thanks.
see also bug 93430 for SMTP (send QUIT when connection is closed)
I'm not seeing the CLOSED_WAIT states anymore in build 2002072104 (Mozilla
1.1b). But we're not still sending the LOGOUT command.
*** Bug 166092 has been marked as a duplicate of this bug. ***
QA Contact: huang → gchan

*** This bug has been marked as a duplicate of 115349 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.