From a348b37a2591001db525929e3cb7e20d7ce7e37e Mon Sep 17 00:00:00 2001 From: v-xiangs Date: Wed, 8 Mar 2017 14:22:51 -0800 Subject: [PATCH] add socket timeout exception as cause --- src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java b/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java index 153776957..30a4cd39a 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java @@ -1980,7 +1980,7 @@ final int read(byte[] data, logger.fine(toString() + " read failed:" + e.getMessage()); if (e instanceof SocketTimeoutException) { - con.terminate(SQLServerException.ERROR_SOCKET_TIMEOUT, e.getMessage()); + con.terminate(SQLServerException.ERROR_SOCKET_TIMEOUT, e.getMessage(), e); } else { con.terminate(SQLServerException.DRIVER_ERROR_IO_FAILED, e.getMessage());