Skip to content

Commit 850415e

Browse files
committed
arangodb-java-driver-384 "java.net.SocketException: Socket closed" when in a cluster mode + Docke...
1 parent 87e37e5 commit 850415e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/main/java/com/arangodb/internal/velocystream/VstCommunication.java

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ protected synchronized C connect(final HostHandle hostHandle, final AccessType a
9292
tryAuthenticate(connection);
9393
}
9494
hostHandler.confirm();
95+
if (!connection.isOpen()) {
96+
// see https://github.com/arangodb/arangodb-java-driver/issues/384
97+
connection.close();
98+
continue;
99+
}
95100
return connection;
96101
} catch (final IOException e) {
97102
hostHandler.fail();

0 commit comments

Comments
 (0)