java - Why does getLocalhost() freeze sometimes? -
With JRE6 (SUN VM on Windows XP), getLocalhost () sometimes freezes
Has anyone else seen this problem?
You did not specify how long it freeze ... or are you completely Frozen, never returning.
If the local host name (returned by JNI call) "localhost", the IP address of the local name is resolved using InetAddress.getAddressFromNameService (). This is a DNS call which may be blocked for an unspecified time for the nameserver and can access the nameserver.
Comments
Post a Comment