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());