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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -