Skip to content

Commit c0bf2b3

Browse files
author
Zhen Li
committed
Merge branch '1.0' into 1.1
2 parents a4d3bb7 + a4a5480 commit c0bf2b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver/src/main/java/org/neo4j/driver/internal/security/TLSSocketChannel.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ private HandshakeStatus unwrap( ByteBuffer buffer ) throws IOException
178178
*/
179179
if ( channel.read( cipherIn ) < 0 )
180180
{
181-
throw new ClientException( "Failed to establish SSL socket connection." );
181+
throw new ClientException( "SSL Connection terminated while receiving data. " +
182+
"This can happen due to network instabilities, or due to restarts of the database." );
182183
}
183184
cipherIn.flip();
184185

0 commit comments

Comments
 (0)