This repository was archived by the owner on May 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/main/java/com/launchdarkly/client Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- version =2.2.5
1+ version =2.2.6-SNAPSHOT
22ossrhUsername =
33ossrhPassword =
Original file line number Diff line number Diff line change @@ -379,7 +379,8 @@ public void close() throws IOException {
379379 }
380380 if (this .config .httpClient != null ) {
381381 if (this .config .httpClient .dispatcher () != null && this .config .httpClient .dispatcher ().executorService () != null ) {
382- this .config .httpClient .dispatcher ().executorService ().shutdown ();
382+ this .config .httpClient .dispatcher ().cancelAll ();
383+ this .config .httpClient .dispatcher ().executorService ().shutdownNow ();
383384 }
384385 if (this .config .httpClient .connectionPool () != null ) {
385386 this .config .httpClient .connectionPool ().evictAll ();
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ protected LDConfig(Builder builder) {
9090
9191 OkHttpClient .Builder httpClientBuilder = new OkHttpClient .Builder ()
9292 .cache (cache )
93- .connectionPool (new ConnectionPool (5 , 5 , TimeUnit .MINUTES ))
93+ .connectionPool (new ConnectionPool (5 , 5 , TimeUnit .SECONDS ))
9494 .connectTimeout (connectTimeoutMillis , TimeUnit .MILLISECONDS )
9595 .readTimeout (socketTimeoutMillis , TimeUnit .MILLISECONDS )
9696 .writeTimeout (socketTimeoutMillis , TimeUnit .MILLISECONDS )
You can’t perform that action at this time.
0 commit comments