networkTimeout

The socket's read timeout, in milliseconds, with 0 meaning no limit.

Both directions are socket operations and both fail on a dead socket, so they are wrapped the way sendMessage and flush are. Left raw, a SocketException would travel out of Connection.setNetworkTimeout and getNetworkTimeout - which JDBC declares as throwing SQLException, and which a pool therefore only guards against as one.