Closed seanderickson closed 7 years ago
Increasing the connection timeout as follows mitigates this issue:
int timeout_seconds = 5*1000; HttpsURLConnection huc = (HttpsURLConnection) url.openConnection(); huc.setConnectTimeout(timeout_seconds); Object content = huc.getContent();
Increasing the connection timeout as follows mitigates this issue:
int timeout_seconds = 5*1000; HttpsURLConnection huc = (HttpsURLConnection) url.openConnection(); huc.setConnectTimeout(timeout_seconds);
Object content = huc.getContent();