diff options
author | Simon Rettberg | 2023-06-06 15:04:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-06-06 15:04:54 +0200 |
commit | fb7a645a9bd33cc4f0b59c858d2160dd1df359b4 (patch) | |
tree | 09cf96b81dd708b4bb6b853e7e6f9182eb018816 /src | |
parent | BFTP: Shorten thread name (diff) | |
download | master-sync-shared-fb7a645a9bd33cc4f0b59c858d2160dd1df359b4.tar.gz master-sync-shared-fb7a645a9bd33cc4f0b59c858d2160dd1df359b4.tar.xz master-sync-shared-fb7a645a9bd33cc4f0b59c858d2160dd1df359b4.zip |
[thrift] Ignore yet another socket exception
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java | 4 |
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" ) ) { |