File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/com/textkernel/tx Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 6161 <dependency >
6262 <groupId >com.squareup.okhttp3</groupId >
6363 <artifactId >okhttp</artifactId >
64- <version >4.9.3 </version >
64+ <version >4.12.0 </version >
6565 </dependency >
6666 </dependencies >
6767
Original file line number Diff line number Diff line change 8484import java .util .Comparator ;
8585import java .util .List ;
8686import java .util .Optional ;
87+ import java .util .concurrent .TimeUnit ;
8788import java .util .stream .Collectors ;
8889
8990/**
@@ -173,6 +174,9 @@ public Response intercept(Interceptor.Chain chain) throws IOException {
173174 return chain .proceed (request );
174175 }
175176 })
177+ .connectTimeout (10 , TimeUnit .SECONDS )
178+ .writeTimeout (10 , TimeUnit .SECONDS )
179+ .readTimeout (30 , TimeUnit .SECONDS )
176180 .build ();
177181 }
178182
You can’t perform that action at this time.
0 commit comments