Skip to content

Commit

Permalink
add socket timeout exception as cause
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyushawn committed Mar 8, 2017
1 parent 68f58aa commit a348b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit a348b37

Please sign in to comment.