http timeouts

<[email protected]> Thu, 28 Jan 2010 17:07:14 -0600
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <047619DE22807D4192B0B9EB64E45CC12AA320772C@MSGCMSV21024.ent.wfb.bank.corp>
Are there any plans to handle timeouts on HTTP?
What would this take to implement?

I could really use this.  I seem to have a test
with an http request that likes to lockup,
and so it locks up my entire test suite.

I did read the FAQ, it says:
How does HttpUnit handle request timeouts?
Badly. Unfortunately, through JDK 1.3, HttpURLConnection (used
by HttpUnit to access web servers) has no support for timeouts.
Supposedly, this is changed in JDK 1.4, but HttpUnit does not
support the new feature as yet.

Seems it was actually implemented in JDK 1.5
http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLConnection.html#setReadTimeout%28int%29

so it should be doable.

Thank you,
Dan

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com