diff options
author | Simon Rettberg | 2023-01-17 16:31:11 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-01-17 16:31:11 +0100 |
commit | 6d0b9ce80809d77309c4e338ddfd5b810022a557 (patch) | |
tree | 9eedd6751933b321e0d8fc500eb35a210a47fcaa | |
parent | [maven] Use https (diff) | |
download | master-sync-shared-6d0b9ce80809d77309c4e338ddfd5b810022a557.tar.gz master-sync-shared-6d0b9ce80809d77309c4e338ddfd5b810022a557.tar.xz master-sync-shared-6d0b9ce80809d77309c4e338ddfd5b810022a557.zip |
Thrift: Silence another exception
-rw-r--r-- | src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java b/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java index 3699267..0f96788 100644 --- a/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java +++ b/src/main/java/org/openslx/thrifthelper/TBinaryProtocolSafe.java @@ -90,7 +90,8 @@ 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" ) ) { + } else if ( e.getCause() instanceof SocketException + && ( e.getCause().getMessage().contains( " timed out" ) || e.getCause().getMessage().contains( "Connection reset" ) ) ) { // Faaaake throw new TTransportException( TTransportException.END_OF_FILE ); } else if ( e.getMessage().contains( "larger than max length" ) ) { |