You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a client requires SSL but the server has SSL disabled, the failure is
now correctly propagated to the client.
Previously, the connection was hanging.
[resolves#187]
if (this.sslConfig.getHostnameVerifier().verify(hostName, this.sslEngine.getSession())) {
88
89
this.handshakeFuture.complete(null);
89
90
} else {
90
-
this.handshakeFuture.completeExceptionally(newIllegalStateException(String.format("The hostname '%s' could not be verified.", socketAddress.getAddress().toString())));
91
+
this.handshakeFuture.completeExceptionally(newPostgresqlSslException(String.format("The hostname '%s' could not be verified.", socketAddress.getAddress().toString())));
thrownewIllegalStateException("Server support for SSL connection is disabled, but client was configured with SSL mode " + this.sslConfig.getSslMode());
97
+
PostgresqlSslExceptione =
98
+
newPostgresqlSslException("Server support for SSL connection is disabled, but client was configured with SSL mode " + this.sslConfig.getSslMode());
0 commit comments