I am using httpunit for integration testing with cargo and I need longer read timeouts to wait for an application to be started. I noticed in the code that this feature is commented.
// [ 1518901 ] enable http connect and read timeouts (needs JDK 1.5)
// XXX enable for 1.7 release in 2008
// comment out if you need this and have JDK 1.5
// if (_connectTimeout>=0) connection.setConnectTimeout( _connectTimeout );
// if (_readTimeout>=0) connection.setReadTimeout( _readTimeout );
But creating own version if you need this functionality seems quite ineffective. It should be fairly easy to add a check for the JDK version and run the code only if the JDK is 1.5+.