Skip to content

Commit

Permalink
Set timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed May 8, 2019
1 parent 51bd36f commit ff6c4dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.android.tools.build:gradle:3.4.0'


// NOTE: Do not place your application dependencies here; they belong
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ static AsyncHttpClient getClient(final Context context) {
client.setEnableRedirects(true);
client.setCookieStore(new PersistentCookieStore(context));
client.setTimeout(requestTimeOut);
client.setConnectTimeout(requestTimeOut);
client.setResponseTimeout(requestTimeOut);
}

return client;
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Jan 24 10:41:26 AMT 2019
#Wed May 08 15:23:08 AMT 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

0 comments on commit ff6c4dd

Please sign in to comment.