java.net.URL Timeouts
By Adrian Sutton
If your application uses java.net.URL, and chances it does are very high, and you are using Sun’s JVM (since 1.4.2), you should set the
sun.net.client.defaultConnectTimeoutandsun.net.client.defaultReadTimeoutsystem properties to a reasonable value. Otherwise, if a remote site hangs, your application or server will also hang. Useful to know…