Skip to content

Commit 9d848ea

Browse files
committed
Merge remote-tracking branch 'origin/ISSUE-198' into ISSUE-198
2 parents 9c3fb1b + 16052ef commit 9d848ea

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/integration-test-cluster-neo4j-4.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
tests:
1313
runs-on: ubuntu-latest
1414
env:
15-
CONNECTION: neo4j://neo4j:testtest@localhost:7688
15+
CONNECTION: neo4j://neo4j:testtest@core1:7688
1616
name: "Running on PHP 8.1 in a Neo4j 4.4 cluster"
1717

1818
steps:

src/Neo4j/Neo4jConnectionPool.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ public function acquire(SessionConfiguration $config): Generator
123123
$latestError = null;
124124

125125
if ($table == null) {
126-
$addresses = $this->resolver->getAddresses((string) $this->data->getUri());
126+
$addresses = (function () {
127+
yield gethostbyname($this->data->getUri()->getHost());
128+
yield from $this->resolver->getAddresses($this->data->getUri()->getHost());
129+
})();
127130
foreach ($addresses as $address) {
128131
$triedAddresses[] = $address;
129132
$pool = $this->createOrGetPool(Uri::create($address));

0 commit comments

Comments
 (0)