tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r671650 - /tomcat/trunk/java/org/apache/catalina/tribes/membership/McastServiceImpl.java
Date Wed, 25 Jun 2008 20:44:49 GMT
Author: fhanik
Date: Wed Jun 25 13:44:48 2008
New Revision: 671650

URL: http://svn.apache.org/viewvc?rev=671650&view=rev
Log:
fix for bug 45279, close multicast socket on close

Modified:
    tomcat/trunk/java/org/apache/catalina/tribes/membership/McastServiceImpl.java

Modified: tomcat/trunk/java/org/apache/catalina/tribes/membership/McastServiceImpl.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/membership/McastServiceImpl.java?rev=671650&r1=671649&r2=671650&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/membership/McastServiceImpl.java (original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/membership/McastServiceImpl.java Wed Jun
25 13:44:48 2008
@@ -304,6 +304,7 @@
             send(false);
             //leave mcast group
             try {socket.leaveGroup(address);}catch ( Exception ignore){}
+            try {socket.close();}catch ( Exception ignore){}
             serviceStartTime = Long.MAX_VALUE;
         }
         return (startLevel == 0);



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


Mime
View raw message