protected boolean isTimeoutException(Throwable t,long startTime){
  long elapsedTime=System.currentTimeMillis() - startTime + 10;
  if (requestLogger.isLoggingEnabled()) {
    requestLogger.log("ELAPSED TIME = " + elapsedTime + ", CT = "+ connectionTimeout+ ", RT = "+ readTimeout);
  }
  if (isConnected) {
    return elapsedTime >= readTimeout;
  }
 else {
    return elapsedTime >= connectionTimeout;
  }
}

protected boolean isTimeoutException ( Throwable t , long startTime ) { long elapsedTime = System . currentTimeMillis ( ) - startTime + 10 ; if ( requestLogger . isLoggingEnabled ( ) ) { requestLogger . log ( "ELAPSED TIME = " + elapsedTime + ", CT = " + connectionTimeout + ", RT = " + readTimeout ) ; } if ( isConnected ) { return elapsedTime >= readTimeout ; } else { return elapsedTime >= connectionTimeout ; } }
determines whether an exception was due to a timeout . if the elapsed time is longer than the current timeout , the exception is assumed to be the result of the timeout .
