equal
deleted
inserted
replaced
51 private static final int DEFAULT_MAX_SOCKETS = 25; |
51 private static final int DEFAULT_MAX_SOCKETS = 25; |
52 private static final int maxSockets; |
52 private static final int maxSockets; |
53 private static final AtomicInteger numSockets; |
53 private static final AtomicInteger numSockets; |
54 |
54 |
55 static { |
55 static { |
56 String prop = |
56 String prop = GetPropertyAction |
57 GetPropertyAction.getProperty("sun.net.maxDatagramSockets"); |
57 .privilegedGetProperty("sun.net.maxDatagramSockets"); |
58 int defmax = DEFAULT_MAX_SOCKETS; |
58 int defmax = DEFAULT_MAX_SOCKETS; |
59 try { |
59 try { |
60 if (prop != null) { |
60 if (prop != null) { |
61 defmax = Integer.parseInt(prop); |
61 defmax = Integer.parseInt(prop); |
62 } |
62 } |