Skip to content

Commit 17f887b

Browse files
authored
Validate idle connections after 2 seconds of inactivity (#90)
1 parent 6e49a22 commit 17f887b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* Fixed `B2StorageClient.deleteAllFilesInBucket` so it uses `fileVersions` instead of `fileNames`.
66
* Added `maxEventsPerBatch` field to `B2WebhookConfiguration`.
77

8+
### Changed
9+
* Validate idle connections after 2 seconds of inactivity
10+
811
## [6.2.1] - 2024-07-16
912
### Added
1013
* Added `eventId` field to `B2EventNotificationEvent`.

httpclient/src/main/java/com/backblaze/b2/client/webApiHttpClient/HttpClientFactoryImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ private HttpClientConnectionManager createConnectionManager() {
207207
final PoolingHttpClientConnectionManager mgr = new PoolingHttpClientConnectionManager(registry);
208208
mgr.setMaxTotal(maxTotalConnectionsInPool);
209209
mgr.setDefaultMaxPerRoute(maxConnectionsPerRoute);
210+
mgr.setValidateAfterInactivity(2000);
210211
return mgr;
211212
}
212213
}

0 commit comments

Comments
 (0)