Skip to content

Commit

Permalink
Connection timeout changed
Browse files Browse the repository at this point in the history
  • Loading branch information
aslamanver committed Jun 7, 2020
1 parent 4299914 commit 92c0bcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retrofitlite/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish {
repoName = 'android'
groupId = 'com.aslam'
artifactId = 'retrofit-lite'
publishVersion = '1.0.4'
publishVersion = '1.0.5'
desc = 'Retrofit-Lite for Android - Lightweight HTTP client based on OKhttp and Retrofit'
website = 'https://github.com/aslamanver/retrofit-lite'
}
Expand All @@ -17,7 +17,7 @@ android {
minSdkVersion 15
targetSdkVersion 28
versionCode 104
versionName "1.0.4"
versionName "1.0.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public boolean verify(String hostname, SSLSession session) {
}

okHttpClientBuilder.callTimeout(builder.TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);
okHttpClientBuilder.connectTimeout(builder.TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);
okHttpClientBuilder.readTimeout(builder.TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);
okHttpClientBuilder.writeTimeout(builder.TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);

okHttpClientBuilder.addInterceptor(new Interceptor() {
@Override
Expand Down

0 comments on commit 92c0bcd

Please sign in to comment.