When Thunderbird start a extension creates a server socket and when Thunderbird is closed the server socket should be closed. The problem is the socket is not closing on the Linux platform.

Thunderbird start
m_serverSocket = Components.classes["@mozilla.org/network/server-socket;1"].
         createInstance(Components.interfaces.nsIServerSocket);

m_serverSocket.init(iPopPort, true,-1);
m_serverSocket.asyncListen(listener);


Thunderbird close m_serverSocket.close()



steps
First time I start TB (Firefox is not running), and click on any link in any of my emails, a new Firefox browser window is opened. While I continue browsing in Firefox, I close TB. The shutdown is clean, there are no lingering processes related to TB, but the server socket is not stopped. The command "netstat" still shows my server socket port as listening.


The only way to close the socket is to close firefox. I would like to point out that this only happens when TB spawns a new Firefox Browser window. If Firefox is already running, then the link is opened in a new tab and server socket stops listening when TB is shutdown.



Any ideas why this is happening?





_______________________________________________
Mozilla-netlib mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to