You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/06/25 21:21:15 UTC

DO NOT REPLY [Bug 45279] New: McastServiceImpl leaks sockets.

https://issues.apache.org/bugzilla/show_bug.cgi?id=45279

           Summary: McastServiceImpl leaks sockets.
           Product: Tomcat 6
           Version: 6.0.16
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Cluster
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: robert.newson@gmail.com


McastServiceImpl does not close its socket in stop() as it claims. It merely
calls leaveGroup(), which is sufficient to stop receiving messages, but does
not close the socket. 

This causes a file descriptor leak each time the service is stopped.

add;

socket.close();

after leaveGroup();


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45279] McastServiceImpl leaks sockets.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45279





--- Comment #4 from Rainer Jung <ra...@kippdata.de>  2009-07-01 12:31:52 PST ---
Also applied to TC 5.5 as r790337 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=790337 ).
Will be part of 5.5.28.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45279] McastServiceImpl leaks sockets.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45279


Filip Hanik <fh...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Filip Hanik <fh...@apache.org>  2008-06-30 13:03:21 PST ---
Fixed in 6.0.x branch, will be included in 6.0.17 and forward


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45279] McastServiceImpl leaks sockets.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45279





--- Comment #1 from Robert Newson <ro...@gmail.com>  2008-06-25 13:13:34 PST ---

btw, since it unreferences the socket without closing it, the next start()
makes a new socket anyway.

I've hacked around this by using reflection to grab the reference to the
multicast socket object before calling stop, then calling stop, then closing
the socket myself.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45279] McastServiceImpl leaks sockets.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45279





--- Comment #2 from Filip Hanik <fh...@apache.org>  2008-06-25 13:48:05 PST ---
Fix suggested for back port into 6.0 branch


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org