Skip to content

Commit

Permalink
Validate idle connections after 2 seconds of inactivity (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlcox authored Oct 23, 2024
1 parent 6e49a22 commit 17f887b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* Fixed `B2StorageClient.deleteAllFilesInBucket` so it uses `fileVersions` instead of `fileNames`.
* Added `maxEventsPerBatch` field to `B2WebhookConfiguration`.

### Changed
* Validate idle connections after 2 seconds of inactivity

## [6.2.1] - 2024-07-16
### Added
* Added `eventId` field to `B2EventNotificationEvent`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ private HttpClientConnectionManager createConnectionManager() {
final PoolingHttpClientConnectionManager mgr = new PoolingHttpClientConnectionManager(registry);
mgr.setMaxTotal(maxTotalConnectionsInPool);
mgr.setDefaultMaxPerRoute(maxConnectionsPerRoute);
mgr.setValidateAfterInactivity(2000);
return mgr;
}
}
Expand Down

0 comments on commit 17f887b

Please sign in to comment.