billbarker 01/11/11 19:31:01
Modified: src/share/org/apache/tomcat/util/net
StreamHandlerFactory.java
Log:
Fix potential MT race condition problem.
Shouldn't happen in normal usage, but why live dangerously?
Revision Changes Path
1.2 +2 -1
jakarta-tomcat/src/share/org/apache/tomcat/util/net/StreamHandlerFactory.java
Index: StreamHandlerFactory.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/net/StreamHandlerFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- StreamHandlerFactory.java 2001/11/10 04:56:16 1.1
+++ StreamHandlerFactory.java 2001/11/12 03:31:01 1.2
@@ -130,7 +130,7 @@
private synchronized void loadProtocols() {
if(protocolString == System.getProperty(SYS_PROTOCOLS))
return;
- protocolString = System.getProperty(SYS_PROTOCOLS);
+ String protocolS = System.getProperty(SYS_PROTOCOLS);
StringTokenizer tok = new StringTokenizer(protocolString,"|");
protocols.clear();
while(tok.hasMoreTokens()) {
@@ -144,6 +144,7 @@
protocols.put(prot,protC);
}
}
+ protocolString = protocolS;
}
/** A connection-less <code>URLStreamHandler</code> to allow parsing-only URLs.
*/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>