harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r822178 - /harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java
Date Tue, 06 Oct 2009 09:42:34 GMT
Author: tellison
Date: Tue Oct  6 09:42:33 2009
New Revision: 822178

URL: http://svn.apache.org/viewvc?rev=822178&view=rev
Log:
Fix a typo in removing expired SSL sessions.

Modified:
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java?rev=822178&r1=822177&r2=822178&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java
Tue Oct  6 09:42:33 2009
@@ -93,11 +93,11 @@
         timeout = seconds * 1000;
 
         // Check timeouts and remove expired sessions
-        SSLSessionImpl ses;
         for (Enumeration<IdKey> en = sessions.keys(); en.hasMoreElements();) {
-            ses = (sessions.get(en.nextElement()));
+            IdKey key = en.nextElement();
+            SSLSessionImpl ses = (sessions.get(key));
             if (!ses.isValid()) {
-                sessions.remove(ses.getId());
+                sessions.remove(key);
             }
         }
     }



Mime
View raw message