james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r531365 - /james/jspf/branches/asynch-jspf/src/main/java/org/apache/james/jspf/core/StagedMultipleSPFExecutor.java
Date Mon, 23 Apr 2007 07:46:07 GMT
Author: norman
Date: Mon Apr 23 00:46:04 2007
New Revision: 531365

URL: http://svn.apache.org/viewvc?view=rev&rev=531365
Log:
Use synchronized Map to be thread-safe

Modified:
    james/jspf/branches/asynch-jspf/src/main/java/org/apache/james/jspf/core/StagedMultipleSPFExecutor.java

Modified: james/jspf/branches/asynch-jspf/src/main/java/org/apache/james/jspf/core/StagedMultipleSPFExecutor.java
URL: http://svn.apache.org/viewvc/james/jspf/branches/asynch-jspf/src/main/java/org/apache/james/jspf/core/StagedMultipleSPFExecutor.java?view=diff&rev=531365&r1=531364&r2=531365
==============================================================================
--- james/jspf/branches/asynch-jspf/src/main/java/org/apache/james/jspf/core/StagedMultipleSPFExecutor.java
(original)
+++ james/jspf/branches/asynch-jspf/src/main/java/org/apache/james/jspf/core/StagedMultipleSPFExecutor.java
Mon Apr 23 00:46:04 2007
@@ -23,6 +23,7 @@
 import org.apache.james.jspf.core.DNSService.TimeoutException;
 import org.apache.james.jspf.exceptions.SPFResultException;
 
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.LinkedList;
 import java.util.List;
@@ -80,7 +81,7 @@
 
         this.responseQueue = new ResponseQueueImpl();
 
-        this.sessions = new HashMap();
+        this.sessions = Collections.synchronizedMap(new HashMap());
 
         this.worker = new Thread(this);
         this.worker.setDaemon(true);



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


Mime
View raw message