David Daney wrote:
+ class GetPropertiesAction
+ implements PrivilegedAction
+ {
+ public Object run()
+ {
+ String ttl = System.getProperty("classpath.net.http.keepAliveTTL");
+ connectionTTL = (ttl != null && ttl.length() > 0) ?
+ 1000 * Math.max(1, Integer.parseInt(ttl)) : 10000;
+
+ String mc = System.getProperty("http.maxConnections");
+ maxConnections = (mc != null && mc.length() > 0) ?
+ Math.max(Integer.parseInt(mc), 1) : 5;
+ if (maxConnections < 1)
+ maxConnections = 1;
+ return null;
+ }
+ }
Well in light of the existence of SystemProperties, I will change this
part to use it.
I will probably have a follow-on patch to HTTPURLConnection.java to
convert it to use SystemProperties as well.
David Daney