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 = java.security.AccessController.doPrivileged( |
56 String prop = |
57 new GetPropertyAction("sun.net.maxDatagramSockets") |
57 GetPropertyAction.getProperty("sun.net.maxDatagramSockets"); |
58 ); |
|
59 int defmax = DEFAULT_MAX_SOCKETS; |
58 int defmax = DEFAULT_MAX_SOCKETS; |
60 try { |
59 try { |
61 if (prop != null) { |
60 if (prop != null) { |
62 defmax = Integer.parseInt(prop); |
61 defmax = Integer.parseInt(prop); |
63 } |
62 } |