Skip to content

Commit

Permalink
Thiru & Sush || Fixed the socket timeout exception when fetching repo…
Browse files Browse the repository at this point in the history
…rts and increased ANMReportScheduler interval.
  • Loading branch information
thirunar committed Dec 23, 2014
1 parent 42a8b66 commit c7b3328
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public HttpResponse get(String url) {
public HttpResponse getWithSocketTimeout(String url) {
HttpGet request = new HttpGet(url);
try {
httpClient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 180000);
httpClient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 0);
org.apache.http.HttpResponse response = httpClient.execute(request);
return new HttpResponse(response.getStatusLine().getStatusCode() == HttpStatus.SC_OK, IOUtils.toString(response.getEntity().getContent()));
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
@Component
public class ANMReportScheduler {
public static final String SUBJECT = "DRISHTI-ANM-REPORT-FETCH-SCHEDULE";
public static final int START_DELAY_IN_MINUTES = 5;
public static final long REPEAT_INTERVAL_IN_HOUR = 1L;
public static final int START_DELAY_IN_MINUTES = 10;
public static final long REPEAT_INTERVAL_IN_HOUR = 6L;
private MotechSchedulerService schedulerService;
private static Logger logger = LoggerFactory.getLogger(ANMReportScheduler.class.toString());

Expand Down

0 comments on commit c7b3328

Please sign in to comment.