Skip to content

Commit

Permalink
Fix SocketTimeout errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sebirdman committed Feb 10, 2014
1 parent d279daa commit 9d2af15
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ public void onError(Exception ex) {

ParallelHttpClient httpClient = new ParallelHttpClient();
httpClient.setMaxRetries(1);
httpClient.setConnectionTimeout(5000);
httpClient.setReadTimeout(115000);
for (Map.Entry<String, String> entry : mConnection.getHeaders().entrySet())
{
httpClient.addHeader(entry.getKey(), entry.getValue());
Expand Down

0 comments on commit 9d2af15

Please sign in to comment.