From fb7a645a9bd33cc4f0b59c858d2160dd1df359b4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 6 Jun 2023 15:04:54 +0200 Subject: [thrift] Ignore yet another socket exception --- src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java b/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java index efa83c3..ca2bb2c 100644 --- a/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java +++ b/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java @@ -102,7 +102,9 @@ public class TBinaryProtocolSafe extends TBinaryProtocol // ignore there. Let's hope it will stay ignored in the future. throw new TTransportException( TTransportException.END_OF_FILE ); } else if ( e.getCause() instanceof SocketException - && ( e.getCause().getMessage().contains( " timed out" ) || e.getCause().getMessage().contains( "Connection reset" ) ) ) { + && ( e.getCause().getMessage().contains( " timed out" ) + || e.getCause().getMessage().contains( "Connection reset" ) + || e.getCause().getMessage().contains( "Connection or inbound" ) ) ) { // Faaaake throw new TTransportException( TTransportException.END_OF_FILE ); } else if ( e.getMessage().contains( "larger than max length" ) || e.getMessage().contains( "Read a negative frame size" ) ) { -- cgit v1.2.3-55-g7522