title: How to override system default TCP timeout
body: <p>I am using old libraries based on JDK 1.4 and I found that there is a huge timeout for attempts to connect to unexisting urls. Investigation revealed next problem:</p>
  
  <p>Prior to JDK 1.5 there was no setting for the connection timeout on a URLConnection object. Instead it would simply use the default OS level timeout value for TCP timeout (which by default happens to be 1800 seconds/30 minutes). JDK1.5 and after included the option to set a custom timeout that overrides the default setting provided by the operating system.</p>
  
  <p>Is it possible to override 'TCP timeout OS setting' from java so code written on java 1.4 use this settings?</p>