We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16052ef commit 5045505Copy full SHA for 5045505
src/Neo4j/Neo4jConnectionPool.php
@@ -129,7 +129,14 @@ public function acquire(SessionConfiguration $config): Generator
129
})();
130
foreach ($addresses as $address) {
131
$triedAddresses[] = $address;
132
- $pool = $this->createOrGetPool(Uri::create($address));
+
133
+ $uri = Uri::create($address);
134
+ $port = $this->data->getUri()->getPort();
135
+ if ($port !== null) {
136
+ $uri = $uri->withPort($port);
137
+ }
138
139
+ $pool = $this->createOrGetPool($uri);
140
try {
141
/** @var BoltConnection $connection */
142
$connection = GeneratorHelper::getReturnFromGenerator($pool->acquire($config));
0 commit comments