Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.1, 2.1.2, 2.2
-
None
-
any, with no internet connectivity [=~ intranet , behind proxy etc.. ]
Description
This issue is related to http://jira.codehaus.org/browse/MPIR-150
it would be nice if url.openStream();
from
ProjectInfoReportUtils.java
InputStream in =null; try { in = url.openStream();
can be replaced with
//Define constant TIMEOUT with pre set timeout InputStream in =null; try { URLConnection conn = url.openConnection(); conn.setConnectTimeout(TIMEOUT); conn.setReadTimeout(TIMEOUT); in = conn.getInputStream();
url.openStream(); is a blocking call that makes caller wait forever and eventually timeouts at the end