diff --git a/CHANGELOG.md b/CHANGELOG.md index 423d7de..e14c4d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ The backward compatibility promise has the following exceptions: * Units of code that are annotated with `@internal`. ## [Unreleased] +### Fixed +- Add a retry delay to a Pool connection when `useTube()` fails. ## [3.0.1] - 2023-10-14 ### Changed diff --git a/src/Pool/ManagedConnection.php b/src/Pool/ManagedConnection.php index 1599173..61e5d6c 100644 --- a/src/Pool/ManagedConnection.php +++ b/src/Pool/ManagedConnection.php @@ -54,7 +54,9 @@ public function disconnect(): bool public function useTube(string $tube): void { - $this->connection->useTube($tube); + $this->tryCommand( + fn() => $this->connection->useTube($tube) + ); } public function put(