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 b802e51 commit eb9674dCopy full SHA for eb9674d
src/Neo4j/Neo4jConnectionPool.php
@@ -123,7 +123,10 @@ public function acquire(SessionConfiguration $config): Generator
123
$latestError = null;
124
125
if ($table == null) {
126
- $addresses = $this->resolver->getAddresses((string) $this->data->getUri());
+ $addresses = (function () {
127
+ yield gethostbyname($this->data->getUri()->getHost());
128
+ yield from $this->resolver->getAddresses($this->data->getUri()->getHost());
129
+ })();
130
foreach ($addresses as $address) {
131
$triedAddresses[] = $address;
132
$pool = $this->createOrGetPool(Uri::create($address));
0 commit comments