private static boolean maybeReadTimeOut ( Throwable e ) { do { if ( IOException . class . isInstance ( e ) ) { String message = e . getMessage ( ) . toLowerCase ( ) ; Matcher matcher = READ_TIME_OUT_PATTERN . matcher ( message ) ; if ( matcher . find ( ) ) { return true ; } } e = e . getCause ( ) ; } while ( e != null ) ; return false ; }
Check if the exception is socket read time out exception