summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2023-06-06 15:04:54 +0200
committerSimon Rettberg2023-06-06 15:04:54 +0200
commitfb7a645a9bd33cc4f0b59c858d2160dd1df359b4 (patch)
tree09cf96b81dd708b4bb6b853e7e6f9182eb018816
parentBFTP: Shorten thread name (diff)
downloadmaster-sync-shared-fb7a645.tar.gz
master-sync-shared-fb7a645.tar.xz
master-sync-shared-fb7a645.zip
[thrift] Ignore yet another socket exception
-rw-r--r--src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java4
1 files changed, 3 insertions, 1 deletions
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" ) ) {