[RFE] HttpUnitOptions => Socket Timeouts
andresgr <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi. i think it would be interesting to have two adittional HttpUnit options:
-> defaultConnectTimeout
-> defaultReadTimeout
Setting them is as easy as doing:
System.setProperty("sun.net.client.defaultConnectTimeout", "20000");
System.setProperty("sun.net.client.defaultReadTimeout", "20000");
But.. maybe this is not 100% portable (sun.net prefix (?)).
The "problem" with default configuration is that timeouts are
infinite. One can believe the test is "hung" when the real problem is
an infinite timeout.
Cheers.
--
-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.
http://coyotevil.blogspot.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV