mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8213490: Networking area typos and inconsistencies cleanup
Reviewed-by: alanb, chegar, dfuchs
This commit is contained in:
parent
56db122656
commit
8c361a3e74
42 changed files with 87 additions and 87 deletions
|
@ -36,13 +36,13 @@ import java.util.StringTokenizer;
|
|||
public class ResolverConfigurationImpl
|
||||
extends ResolverConfiguration
|
||||
{
|
||||
// Lock helds whilst loading configuration or checking
|
||||
// Lock held whilst loading configuration or checking
|
||||
private static Object lock = new Object();
|
||||
|
||||
// Resolver options
|
||||
private final Options opts;
|
||||
|
||||
// Addreses have changed
|
||||
// Addresses have changed
|
||||
private static boolean changed = false;
|
||||
|
||||
// Time of last refresh.
|
||||
|
@ -65,7 +65,7 @@ public class ResolverConfigurationImpl
|
|||
private LinkedList<String> stringToList(String str) {
|
||||
LinkedList<String> ll = new LinkedList<>();
|
||||
|
||||
// comma and space are valid delimites
|
||||
// comma and space are valid delimiters
|
||||
StringTokenizer st = new StringTokenizer(str, ", ");
|
||||
while (st.hasMoreTokens()) {
|
||||
String s = st.nextToken();
|
||||
|
@ -81,7 +81,7 @@ public class ResolverConfigurationImpl
|
|||
private void loadConfig() {
|
||||
assert Thread.holdsLock(lock);
|
||||
|
||||
// if address have changed then DNS probably changed aswell;
|
||||
// if address have changed then DNS probably changed as well;
|
||||
// otherwise check if cached settings have expired.
|
||||
//
|
||||
if (changed) {
|
||||
|
|
|
@ -585,7 +585,7 @@ void dumpAddr (char *str, void *addr) {
|
|||
* The more complicated case is when the requested address is ::0 or 0.0.0.0.
|
||||
*
|
||||
* Two further cases:
|
||||
* 2. If the reqeusted port is 0 (ie. any port) then we try to bind in v4 space
|
||||
* 2. If the requested port is 0 (ie. any port) then we try to bind in v4 space
|
||||
* first with a wild-card port argument. We then try to bind in v6 space
|
||||
* using the returned port number. If this fails, we repeat the process
|
||||
* until a free port common to both spaces becomes available.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue