Skip to content

Commit fdfa78d

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ 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+
hostHandler.fail();
99+
host = hostHandler.get(hostHandle, accessType);
100+
continue;
101+
}
95102
return connection;
96103
} catch (final IOException e) {
97104
hostHandler.fail();

0 commit comments

Comments
 (0)