public static boolean isConnectionReset(Throwable err) {
		return err instanceof AbortedException ||
		       (err instanceof IOException && (err.getMessage() == null ||
		                                       err.getMessage()
		                                          .contains("Broken pipe") ||
		                                       err.getMessage()
		                                          .contains("Connection reset by peer"))) ||
		       (err instanceof SocketException && err.getMessage() != null &&
		                                          err.getMessage()
		                                             .contains("Connection reset by peer"));
	}
public static boolean isConnectionReset ( Throwable err ) { return err instanceof AbortedException || ( err instanceof IOException && ( err . getMessage ( ) == null || err . getMessage ( ) . contains ( "Broken pipe" ) || err . getMessage ( ) . contains ( "Connection reset by peer" ) ) ) || ( err instanceof SocketException && err . getMessage ( ) != null && err . getMessage ( ) . contains ( "Connection reset by peer" ) ) ; }
Return true if connection has been simply aborted on a tcp level by verifying if
the given inbound error.

@param err an inbound exception

@return true if connection has been simply aborted on a tcp level