From WWWUtils.isAvailable(): HttpURLConnection connection = (HttpURLConnection) httpURL.openConnection(); connection.setRequestMethod("HEAD"); connection.setConnectTimeout(3000); connection.setReadTimeout(1000); The timeouts should be configurable...
We now use the PC avail facet timeout, rather than hard-coded value of 3s, as the timeout for HTTP ping avail checks (for both Apache server Resources and VHost service Resources). I also added lots of DEBUG logging to WWWUtils.isAvailable() to aid in debugging connection failures: master 8a75f68 (http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=8a75f68)
We now also log a DEBUG message if we fail to set the read timeout on the URLConnection: master 0565698 (http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=0565698)
Add some further improvements to logging and error handling: master f01a945 (http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=f01a945)
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.